Hi,
I'm trying to make an online questionnaire using PHP to send the values entered to me via email. I would like to break the form into 2 pages.
What is the simplest way to make sure that the values from both pages are sent ?
Loop through the $_POST array and print them as hidden fields.
foreach($_POST AS $key => $value) echo("<input type='hidden' name='$key' value='$value'>");
Sorry, but I'm not sure I understand exactly where nd how I would use that. Please explain where in the form I would use your suggestion.
Did you try using the code? Always try to answer your own questions first. If you had used the code, you would have seen that it prints a series of hidden form fields for all of the $_POST data from the previous page. Just make sure you print it between the <form></form> tags.