I am developing some code that allows a website visitor to create a profile and define their username and password. I am having PHP do a check on the username before creating the new record in the database. If it finds the username already exists then I want to display a message indicating that the username is already taken and to please select a new one. Here’s the rub, I want to be able to send them back to the form entry page like their browser’s back button would do without instructing them to use their back button. (To preserve the POST information they already entered).
Is this possible with PHP or should I just make the username/password entry page separate from the rest of the form?
Thanks,
Lisa