<?
$idQCM = 3; // Identifier, number of the questionnaire (qcm3.txt -> '3')
require("QCM.php"); // Insertion of the class
$test = new qcm($idQCM); // Instanciation of the test
?>
<html>
<head>
<title><? echo $test->title; ?></title>
<link rel="stylesheet" href="test.css" type="text/css">
</head>
<body>
<?
if (!$_POST['submit']) {
echo "<form method='post' name='test' action='" . $_SERVER['PHP_SELF'] . "'>\n";
$test->display(); // Display the test
echo "</form>\n"; }
else {
$test->correction(); // Correct of the test
// ------------------------------------------------------
// These lines can be commented or deleted.
// They have been written to show how the class works
// echo "<hr>";
// $test->showResponses();
// $test->showVars();
// ------------------------------------------------------
}
?>
</body>
</html>