Jump to content

Back To Page After Validation Fial.


UberPooner
 Share

Recommended Posts

Hi, I have a form that submits to a php script which checks if a name value is already in the table. if it is, input all data into table. If not, go back to form page with users information still there notifying them that the name is taken. I was wondering what I would need to do to have the users values be in the textfields when they get re-directed to the form page. Would session variables help me here? What do you think?thank you.

Link to comment
Share on other sites

You could have the processing ('checking') code on the same page as the form, and then just re-display the form with the fields filled in if the data is incorrect.

Edited by Synook
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...