Hi everone,
I don't know why this is happening because it did not happen before, but here's my problem:
Once you click a button, it takes you to a page that should ask for your username and password...
However it no longer even asks me for the password, it just acts as though there was not username or pasword entered, or that the username or password was wrong.
Here's my code:
if(!$PHP_AUTH_USER||!$PHP_AUTH_PW){
authenticate();
}
else{
// continue with program - get members info
}
function authenticate() { // it ends up going in here... although they didn't even ask for my username or password.
GLOBAL $leagueID;
Header("WWW-authenticate: basic realm=\"MEMBER LOGIN! PLEASE USE YOUR EMAIL ADDRESS FOR 'USERNAME'. Logout when finished");
Header("HTTP/1.0 401 Unauthorized");
echo "LeagueID: $leagueID";
echo "<BR><B><CENTER><FONT COLOR=RED>Logging Error!</FONT><BR><BR><FONT COLOR=GREEN> Please Click the ' Go Back ' button.<BR>\n";
print ("<form><input type=button onClick='history.back()' value = ' Go Back '></form>");
// require("../footer.php");
}//end function
Does anyone know what is wrong?
Any help is greatly appreciated.
Thanks for your time.