this is the code u requested for.
am sorry for posting more than once i promise i won't do it again.
the file page2.php is in the php tutorial on authentication which i believe you have read.
here is my code
<html><head><title>my database</title></head>
<body topmargin=30 leftmargin=30 rightmargin=30>
..
..
</body></html
i left out the body which is basically contents of my file home.php.
let me explain my problem a little more .
without the include statement everything is fine.
the page shows properly but because i want to ensure that whoever is viewing home.php is an authenticated user i included page2.php at the top.
what happens when i login is that the login form login.html appears on top of my page and the rest that appears is the contents of home.php without the include statement.
to be abit more elaborative i don't want the login form to appear on top of my page since i already logged in so what can i do to restrict access to that page if not logged in and at the same time when i login i should not see the login form.