Question
Creating Questions & Tallying Scores
Greetings
I am creating online tests in which the user score needs to be recorded.
I have them log in and go to the test, which creates a new record in the DB with the date and start time. After submitting the test, the number correct and finish time updates their record based on the session_ID variable.
The way I have set up the test form is attached. Each question has its own query (X50) and the correct answers are tallied with the action code.
My issues are:
1) Can this be accomplished without the necessity of a query for each question?
2) What's the safest way to keep their ID variable alive - session or application (some may have cookies disabled- they will be taking the test from multiple locations)?
3) Is there a more efficient way to tally the score?
3) I am using what they enter in as their employee number for the session_ID- could this be an issue?
Thanks in advance for any advice.
rinorman
I am creating online tests in which the user score needs to be recorded.
I have them log in and go to the test, which creates a new record in the DB with the date and start time. After submitting the test, the number correct and finish time updates their record based on the session_ID variable.
The way I have set up the test form is attached. Each question has its own query (X50) and the correct answers are tallied with the action code.
My issues are:
1) Can this be accomplished without the necessity of a query for each question?
2) What's the safest way to keep their ID variable alive - session or application (some may have cookies disabled- they will be taking the test from multiple locations)?
3) Is there a more efficient way to tally the score?
3) I am using what they enter in as their employee number for the session_ID- could this be an issue?
Thanks in advance for any advice.
rinorman
