SXL WEB -
Joined: 13 Nov 2002 Posts: 28 Location: Elmira, NY - a small pleace from hell
|
Posted: Fri Feb 14, 2003 7:16 am Post subject: multi users |
|
|
i need help making a multi user login script...
i made all my files and a users.php file full of user names. and passwords
now i just need to know how to make a admin that will allow all the users to login. with out sql here is what i have
[php]
<?
if (empty($PHP_USER)) {
?>
<form method="post" action="<?=$PHP_SELF?>">
<input type="text" maxsize="50" name="PHP_USER">
<input type="password" maxsize="50" name="PHP_PW">
<input type="submit" value="Submit">
</form>
<?
}
elseif (($PHP_USER != $admin) || ($PHP_PW != $password)) {
?>
<form method="post" action="<?=$PHP_SELF?>">
<input type="text" maxsize="50" name="PHP_USER">
<input type="password" maxsize="50" name="PHP_PW">
<input type="submit" value="Submit">
</form>
<?
}
else {
?>
You haved loged in ($user)
<?
}
?>
[/php] _________________
|
|