Forum Moderators: coopster

Message Too Old, No Replies

Start quiz where finished

How to get a questionnaire to begin where left off

         

s9901470

2:12 pm on Apr 12, 2005 (gmt 0)

10+ Year Member



Hi

I'd like to run a PHP/MySQL quiz with 100 questions, but if people leave before they've finished, I want them to start from the question they left off at e.g. if they close the browser after question 67, they will get question 67 next time they log in.

Can anyone recommend a strategy for how I can achieve this?

Many thanks
Ed

topr8

2:29 pm on Apr 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



do they submit/answer each question before the next is presented to them?

if so just set a cookie with a value of the question number each time they answer a question.

you can retrieve the cookie value and present them with the right question

s9901470

2:42 pm on Apr 12, 2005 (gmt 0)

10+ Year Member



Ideally I would want to present the questions in batches of ten, and submit 10 responses at a time.

Could you show an example of how to set a cookie in this way?