multi users

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
SXL WEB
-


Joined: 13 Nov 2002
Posts: 28
Location: Elmira, NY - a small pleace from hell

PostPosted: Fri Feb 14, 2003 7:16 am    Post subject: multi users Reply with quote

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]
_________________
Back to top View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group