...page at the end? I have created the question pages but am finding it difficult to get a total at the end (eg. X amount of questions out of 12 right). I currently have this code in place but it seems incorrect. PLEASE HELP!! this is an emergency.
<?php
$var_total=$_SESSION['q1']+$_SESSION['q12'];
echo "You got ".$var_total." out of 12 questions correct.";
session_destroy();
?>
<?php
$var_total=$_SESSION['q1']+$_SESSION['q12'];
echo "You got ".$var_total." out of 12 questions correct.";
session_destroy();
?>