Random Question Quiz

I've been asked a lot lately about displaying randomly selected records from a database. I've written the RandNumList custom tag for just this purpose. I'm going to take this code one step further and show how you can display random questions from a database and then grade the user's score on the action page.

I have a database with 9 questions and I'm displaying 5 of them randomly below. When you click on 'Grade', your score will be processed. Unanswered questions will be graded as 'wrong'.

5. Which is the odd one out?
9. Now that you are about to finish this quiz, if you have all the answers correct, you can be sure that you know all there is to know about Email.
1. Which of the following attributes can''t you sort your mail by?
Date arrived.
Date written.
7. When you have downloaded some software, what do you need to do with it next?
decode and/or decompress - it depends on the file.
8. Email should always be written in the highest, most polite form of English.
False, the kind of language that you use in email depends on the person you are talking to.
False, email has its own language - ''emailese''.

Join Our E-Mail Newsletter

For Email Newsletters you can trust

Sister Sites

RiteTech LLC
Modern HOA