Hi everyone,
I have a signup.php file which contains a whole bunch of fields that users put details into when they are registering for my website. When the click the submit button, it goes to validate.php to validate all the fields are valid (i.e -> not empty etc etc).
So when the user clicks submit it goes to validate.php, I get all the variables from the first page by doing something like this.
$SESSION['phpFirstName'] = $POST['htmlFirstName'];
etc
etc
If there is an error, I want to go back to the signup.php page and notify the user of the offending fields on the form. Say the user didn't fill in the first name, I would return to the signup page like this:
header("location:http://address/signup.php?errors=firstname");
when I go back to the signup.php page, I expect that all other variables that passed validation have been "session"ized and that I can display them in the form without the user having to fill them in again - however the session variable doesn't seem to work and there is nothing in there when i return.
How can this be???