This section provides two user logon methods: one is normal phpmysql user logon, the other is to use window verification to log on, and the other is more secure, but not suitable for other applications. method 1: window to verify user logon. the code is as follows :... this section provides two user logon methods: one is normal php mysql user logon, the other is to use window verification to log on, and the other is more secure, but not suitable for other applications.
Method 1: Use window to verify user logon. the code is as follows:
"; Echo" your password is ". $ _ server ['php _ auth_pw '].""; $ Correctname =" john "; $ correctpwd =" 1234 "; if ($ _ server ['php _ auth_user ']! = $ Correctname) or ($ _ server ['php _ auth_pw ']! = $ Correctpwd) {echo "logon failed. please open a new browser and log on again";} else {echo "logon successful..." ;}}}?>
Method 2: php mysq. the code is as follows:
Logon screen No account or password is entered, or the password is incorrect.
"; Echo" your login account is ". $ _ post ['name']."
"; Echo" your password is ". $ _ post ['passwd']; endif?>
Permanent link:
Reprint at will! Include the article address.