I'm trying to build a quiz using PHP. I want a set of 10 questions to appear from the database (using a field called "level")
Once the user submits their form, I want their answers to be compared to the correct answer in the database.
If they receive an 80%, their name is added to the list of competitors, along with their score, and they are taken to the next set of questions.
How do I do this? With sessions?
Do I need to create an answer key with if and else statements to get the percentage of answers correct?
I'm at a loss here at how to even begin, but if someone could give me a direction, it would be greatly appreciated.
Thanks for your time,
Mada