I am using this standard code at the start of my script to request a
user to login. After the user enters information the login box just pops
back up. The script does not move to the else portion after a login is
entered. It just stays in the first part of the if statement. Any help?
if (!isset($PHP_AUTH_USER))
{
header('WWW-Authenticate: Basic realm = "Club"');
header('HTTP/1.0 401 Unauthorized');
echo "Nice try, if you really are supposed to be in here, try again.\n";
exit;
}
else
{
$linkID = @mysql_connect("localhost", "username", "password");
etc....
}