jasonc310771
09-12-2008, 06:59 PM
I am at the first stage of creating a quiz.
what i wish to know is how i can limit the time taken between each questions. preventing the questions being looked up!
quick run down on the method i want to use...
0) create an empty entry for the users answers
1) questions to be asked using PHP's for/next loop (10 questions)
2) questions taken from mysql databases (for simplicity i will only have two possible answers)
(now this is the part i need help with....)
3) submit button shown for user to click to start quiz. (ten second timer started)
4) if answer selected, store the answer in the user answers entry in mysql
5) if no answer selected in ten seconds, then (next) go to number (1) above, to show next question after the user clicks the button to show next question
i will simplify this a lot more i am sure later on. but just to give an idea on the method i want to use.
the bit i need help with when i have written this is the timer part.
how do i limit the time they have to answer each question.
been told to use javascript but no idea, never used it before and really would appreciate some help
thanks in advance.
what i wish to know is how i can limit the time taken between each questions. preventing the questions being looked up!
quick run down on the method i want to use...
0) create an empty entry for the users answers
1) questions to be asked using PHP's for/next loop (10 questions)
2) questions taken from mysql databases (for simplicity i will only have two possible answers)
(now this is the part i need help with....)
3) submit button shown for user to click to start quiz. (ten second timer started)
4) if answer selected, store the answer in the user answers entry in mysql
5) if no answer selected in ten seconds, then (next) go to number (1) above, to show next question after the user clicks the button to show next question
i will simplify this a lot more i am sure later on. but just to give an idea on the method i want to use.
the bit i need help with when i have written this is the timer part.
how do i limit the time they have to answer each question.
been told to use javascript but no idea, never used it before and really would appreciate some help
thanks in advance.