This is an older script of mine, may be of some use:
Code:
<?php
if($_POST['user']) {
if(($_POST['user'] == "Username1") && ($_POST['pass'] == "Password1")) header("Location: http://the page to go to.com");
else if(($_POST['user'] == "User2") && ($_POST['pass'] == "Password2")) header("Location: http://the page to go to .com");
else header("Location: error.htm");
} else {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>php log in script</title>
</head>
<body>
<br><br>
<center>
<font size= "6">Please Log In Below</font><br><br><br>
<form action="<?=$PHP_SELF?>" method="post">
<p>Username: <input type="text" name="user"/>
Password: <input type="password" name="pass"/>
<input type= "submit" value= "Log In"/></p>
</form>
</center>
</body>
</html>
<?php } ?>
Changing the parts in red to match what you need, obviously.
You can just add more of the if/else parts for each user.. or make a global page and call that with post/get etc... Shouldn't be that hard to manipulate.
Bookmarks