hi, i found a tut to a login script on this site, the link is
http://www.phpbuilder.com/columns/tim20000505.php3?page=1
ive got the main part working ok, but what i need to know is how i can stop people from going around the login and just typing in the addrress to the file like
www.thephoenixporject.co.uk/Serenity/test/main.php (this is wher they are redirected to when they login in)
i tried to put at the top of the page but i guess its wrong
<?
include($DOCUMENT_ROOT.'/Serenity/test/database.php');
include($DOCUMENT_ROOT.'/Serenity/test/pre.php');
include($DOCUMENT_ROOT.'/Serenity/test/user.php');
if (user_isloggedin()) {
echo 'Welcome you are Logged in';
} else {
echo 'Welcome you are Not Logged in';
}
?>
i am a complet noob to php and any help would be great, also is this login secure?