A simple web page password to log on to the php code. Copy the code as follows :? Php $ password1234; here is the password $ p; if (isset ($ _ COOKIE [isview]) and $ _ COOKIE [isview] $ password) {$ isviewtrue ;} else {if (isset ($
The code is as follows:
$ Password = "1234"; // Here is the password
$ P = "";
If (isset ($ _ COOKIE ["isview"]) and $ _ COOKIE ["isview"] = $ password ){
$ Isview = true;
} Else {
If (isset ($ _ POST ["pwd"]) {
If ($ _ POST ["pwd"] = $ password ){
Setcookie ("isview", $ _ POST ["pwd"], time () + 3600*3 );
$ Isview = true;
} Else {
$ P = (empty ($ _ POST ["pwd"])? "The password is required for viewing. enter the password. ":" The password is incorrect. please enter it again. ";
}
} Else {
$ Isview = false;
$ P = "enter the password to view the password. contact me for the password. ";
}
}
If ($ isview) {?>
Here is what is displayed after the password is successful
Reminds you to enter your password
}?>
The http://www.bkjia.com/PHPjc/325631.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/325631.htmlTechArticle code is as follows :? Php $ password = "1234"; // Here is the password $ p = ""; if (isset ($ _ COOKIE ["isview"]) and $ _ COOKIE ["isview"] = $ password) {$ isview = true;} else {if (isset ($...