Jump to content

Carrying values over pagination of same page


s.prema@yahoo.com

Recommended Posts

Hello everyone,

I need to create a quiz module with db integration.  User should select one of the three options each carry different points.  Questions, options, points are stored in respective tables. Question count is dynamic and should be displayed with pagination [as link, to the same page quiz.php using mysql limit query], 5 questions per page. Now I am having up to 4 pages. And user can submit the quiz only in last page not before. Till this all done.

 

Problem is, how to carry they selected answers over pages....????????

 

Please note,

question id is dynamic and concatenated with the letter 'Q', and stored as hidden value,

option id is also dynamic and concatenated with the word 'OPT', radio button array is used for every question.

So, for every question, Q1 stores Question id, OPT[] holds the 3 options

 

How to submit all these selected answers in the 4th page.

Is it possible thru javascript.. or in PHP itself?

:'(

Very Urgent

Thank U

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.