Hi,
I am trying to create a javascript/jQuery quiz/questionnaire. I've seen a few of these around but none are quite what I am after.
What I'd like to do is pull a number of questions from a database using php. Each question would have a yes/no answer which takes them to the next question. Only one question is shown at any time (most of the quizzes i've seen display all the questions with a submit button at the end). I also want to be able to record the answers to save them to the database at the end.
I can do this all in php but then I have to go back to the database for each question/answer which takes time. I am hoping I can do it in javascript/jQuery so that it's faster only my javascript knowledge is not up to scratch.
Can anyone give me some pointers/show me any examples that might help?
Thanks
c_h_r_i_s
I am trying to create a javascript/jQuery quiz/questionnaire. I've seen a few of these around but none are quite what I am after.
What I'd like to do is pull a number of questions from a database using php. Each question would have a yes/no answer which takes them to the next question. Only one question is shown at any time (most of the quizzes i've seen display all the questions with a submit button at the end). I also want to be able to record the answers to save them to the database at the end.
I can do this all in php but then I have to go back to the database for each question/answer which takes time. I am hoping I can do it in javascript/jQuery so that it's faster only my javascript knowledge is not up to scratch.
Can anyone give me some pointers/show me any examples that might help?
Thanks
c_h_r_i_s
Comment