s.prema@yahoo.com Posted March 1, 2010 Share Posted March 1, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/193741-carrying-values-over-pagination-of-same-page/ Share on other sites More sharing options...
s.prema@yahoo.com Posted March 1, 2010 Author Share Posted March 1, 2010 Sorry a correction in my text.... For question 1 : Q1 holds Question id, radio button array holds the 3 options named OPT1[] For question 2 : Q2, OPT2[] For question 3 : Q3, OPT3[] and so on.. Quote Link to comment https://forums.phpfreaks.com/topic/193741-carrying-values-over-pagination-of-same-page/#findComment-1019722 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.