SXL WEB -
Joined: 13 Nov 2002 Posts: 28 Location: Elmira, NY - a small pleace from hell
|
Posted: Mon Feb 10, 2003 5:53 pm Post subject: Login Scripts |
|
|
can some one help me im trying to make a non sql login script so users can login (MEMBER SCRIPT)
i made a user.php file and each user has a line with infomation ie
" datejoined|name|username|password|email|gender|siteurl|sitename|sn "
above is what my user.php file looks like can some one help me with the bottom code i need to make it fit my user.php file so users can login
WHAT SHULD I DO TO IT
<?
If ($submit) {
if (!$user || !$pass) {
echo "Please fill in both of the fields.";
return;
}
if ($user == "username" && $pass == "password") {
}
?>
Welcome <? echo $username ?> the date is <? echo $date ?>
?>
return;
} else {
echo "Incorrect User/Password combination.";
return;
}
} else {
?>
HTML
<?
}
?> _________________
|
|