Jump to content

Archived

This topic is now archived and is closed to further replies.

9999

Posting to PHP script using a 2-page form

Recommended Posts

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

Share this post


Link to post
Share on other sites
Store the answers in a session variable, a cookie, or pass them using serialized arrays in hidden form fields.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.