I have a general question on how to select multiple question on a quiz.
The quiz is done in html and php, with a post method.
The post info connect to a php file. By the way the the guess are A, B, C, D...
This is part of my code for the multiple question to see if its the aswer is correct or not.
Here I made the A, B, C, D in answers1.1, answers1.2, answers1.3, answers1.4.
Here is part of my code
Your answer was: [PHP]<?php
if ($question2 == "answer2.1")
{
echo ("<b>Correct</b>");
$score = $score + 1;
}
else
{
echo ("<b>Incorrect</b>");
}
?>[/PHP]
Part I need help is here
if ($question2 == "answer2.1")
How do I get to to read multiple answers.
is it like this
[PHP] if ($question2 == "answer2.1"
$$ "answer2.3")
[/PHP]
or this
[PHP] if ($question2 == "answer2.1" $$ $question2 == "answer2.3")
[/PHP]
Both answers have to be selected in order to get the question right.
thanks
nomad