Hello,
I am building a two page form, and trying to get the variables from page 1 to pass to page 2. I thought this was something simple, but maybe not.
page1.php uses $PHP_SELF to validate the form. Once all required form fields are filled in, it uses header("Location: page2.php") to go to the second page of the form. I want page2.php to remember all the variables from page1.php. I've included hidden inputs on page2.php, but this doesn't work - they all have a null value. I've had sucess appending the variable names to the header redirect (Location: page2.php?name=$name) etc, but there are nearly 20 variables in the first page, so I'd rather not do it this way.
Is there a way to do this without using cookies or session variables? Do hidden imputs not work with header(Location)?
Thank you in advance,
Jenny