Hey all!
I have a php page with a registration page that posts back to itself setting a varible so that on load as long as all the validations pass a new user is created. If it does not pass the validation then it displays an error and ask the user to change whatever was wrong. This all works fine, however when the form is recreted the information gets cleared, how can I restore the information from the original submit?
Thanks in advance
Steven
Using sessions! for example if your input box name is "test" in your validation script assign
$_SESSION['test] ='$_POST['test'];
and create your input box like
<input type="text" value="<?php print $_SESSION['test'];?>" name="test">
Thank you very much, I was just about to start learning sessions as well but decided that I should fix this problem first!
Should be
$_SESSION['test']
and not
$_SESSION['test]
though.