Who will help me look at the php login page? I am very grateful for using php for the login page and verifying with the data in the database, if the entered user name or password does not match, an error message "incorrect user name or password" is displayed. use this statement to return the header ("Location: login. php? Errno = 1 "), in the login. use $ _ GET to receive errno on the php page. you can use login. the php page successfully displays the information such as "incorrect user name or password". However, if the page is refreshed at this time, the information cannot be flushed, is there any way to make the phrase "incorrect user name or password" disappear during refresh?
Reply to discussion (solution)
Login
'; Echo 'alert ("incorrect user name or password");'; echo 'window. location = "login. php "; '; echo 'script';}?>User name:
Password:
If it is your current method and errno is included in each refresh, the logical processing of the PHP file will inevitably bring this information out.
Generally, the session method is used, rather than the parameter method. In this way, check whether the session exists in the PHP file. If yes, the error message is displayed and the session is eliminated, which is convenient.