9999 Posted August 15, 2006 Share Posted August 15, 2006 I am making a quiz that will consist of 10 questions. The form will post to a PHP script for grading. Due to space limits I want to put 5 questions on one page (quiz.html) with a continue button on the bottom that takes you to the second page (quiz2.html) were the user will "submit" their answers. How do you get the answers from the first page to carry over and post with the stuff from page 2?Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/17632-posting-to-php-script-using-a-2-page-form/ Share on other sites More sharing options...
Daniel0 Posted August 15, 2006 Share Posted August 15, 2006 Store the answers in a session variable, a cookie, or pass them using serialized arrays in hidden form fields. Quote Link to comment https://forums.phpfreaks.com/topic/17632-posting-to-php-script-using-a-2-page-form/#findComment-75138 Share on other sites More sharing options...
trq Posted August 15, 2006 Share Posted August 15, 2006 Post it to the second page and then either store there values in the session array, or hold them in hidden form fields ready to be submitted with the rest. Quote Link to comment https://forums.phpfreaks.com/topic/17632-posting-to-php-script-using-a-2-page-form/#findComment-75140 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.