her is the following code, what it does is check userid's thenpasswd's then sends them on there way or tells them otherwise, suchas wrong password, alomst everything works bvut the wrong password for user brooks. it prints out "Wrong Password and User Brooks is not listed" when it should only print out "wrong password" when i enter a wrong password, the others work fine if i enter a wrong password for bob it only says wrong password, here is the code, and maybe someone can find something that i forgot to close or something..
if ($id != "")
{
if ($id == "brooks")
{
$pwd = "test";
if ($pw == $pwd)
{
header("Location: http://tuna.port-aransas.k12.tx.us/~brooks/scripts/brooks.php");
}
else
{
print("Wrong Password");
}
}
if ($id == "user")
{
$pwd = "user";
if ($pw == $pwd)
{
header("Location: http://tuna.port-aransas.k12.tx.us/~brooks/scripts/user.php");
}
else
{
print("Wrong Password");
}
}
if ($id == "bob")
{
$pwd = "bob";
if ($pw == $pwd)
{
header("Location: http://tuna.port-aransas.k12.tx.us/~brooks/scripts/bob.php");
}
else
{
print("Wrong Password");
}
}
else
{
print("Sorry but the user name $id is not listed");
}
}
else
{
print("Please enter a name");
}
?>
thanks and any help is aprreciated
-BS