The logon code of the message board written by Cainiao can help you see, why do you need to click login twice to log on? why do you need to click exit twice to exit? The logon code of the message board written by Cainiao can help you see, why do you need to click login twice to log on? why do you need to click exit twice to exit? Where is the problem? thank you for taking a look. The code is as follows: the logon code of the message board written by Cainiao can help you see why you need to click login twice to log on. why do you need to click login twice to exit?
The logon code of the message board written by Cainiao can help you see, why do you need to click login twice to log on? why do you need to click exit twice to exit? Where is the problem? thank you for taking a look. The code is as follows:
Include ("SQL. php ");
If ($ _ GET [out])
{
Setcookie ("cookie", "out ");
Echo"
Localhost. href = 'login. php'; script ";
}
If ($ _ POST [id] = 'XXX ')
{
$ Pw = md5 ($ _ POST [pw]);
If ($ pw = 'e1bfd762321e409cee4ac0b6e841963c ')
{
Setcookie ("cookie", "OK ");
Echo"
Localhost. href = 'login. php'; script ";
}
}
Include ("Head. php ");
If ($ _ COOKIE ['cooker']! = 'OK '){
?>
Function Checklogin ()
{
If (myform. id. value = "")
{
Alert ("Enter the login name ");
Myform. id. focus ();
Return false;
}
If (myform. pw. value = "")
{
Alert ("The password cannot be blank ");
Myform. pw. focus ();
Return false;
}
}
SCRIPT
} Else {
?>
Exit
}
?>
The code written by PHP Cainiao is shared:
------ Solution --------------------