Quiz Results

Question $Count: ", $_GET["question$Count"]; if ($_GET["question$Count"] == $CorrectAnswers[$Count -1]) { echo " (Correct!)

"; ++$TotalCorrect; } else { echo " (Incorrect)

"; } ++$Count; } echo "

You scored $TotalCorrect out of 5 answers correctly!

"; } else { echo "

You didn't answer all the questions!

"; } } scoreQuestions(); ?>