Keep username in username field when incorrect password (php)

Posted by Jonathan on Stack Overflow See other posts from Stack Overflow or by Jonathan
Published on 2010-04-12T09:35:22Z Indexed on 2010/04/12 9:43 UTC
Read the original article Hit count: 513

Filed under:
|
|
|

How do many of the websites that have logins keep the username in the username field when the password is entered incorrectly. The form's action (it is on index.php) is another php file, which if the password is incorrect uses Header() to go back to the index and passes the error to it using GET. I could use GET to pass the username back to the form but this seems messy, and I have noticed that websites like SMF forums have the username stay in the username field without a messy URL.

© Stack Overflow or respective owner

Related posts about php

Related posts about login