I am very grateful for anyone who will help me with the php login page.

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.