
 Eduardo Fuerte - 2009-02-26 22:48:28
Hello Mr. Fauque !
I've used your examples and my doubt here is about the $submit variable that is always "false" so the correction ($test->correction()) of the form test never occur ?!
I really don't know if it's needed any configuration (unfortunatelly I cant understand your pdf text  very well)
Could you please help me ?
Eduardo
<?
$idQCM = 9; // Identifiant, numéro du questionnaire
require("QCM.php"); // Insertion de la classe d'objet
$test = new qcm($idQCM); // Instanciation du test
?>
<html>
<head>
<title><? echo $test->title; ?></title>
<link rel="stylesheet" href="test.css" type="text/css">
</head>
<body>
<?
echo "Submit  ".$submit;
if (!$submit) {
       echo "<form method=\"post\" name=\"test\" action=\"$PHP_SELF\">\n";
       $test->display(); // Affichage du test
       echo "</form>\n"; }
else {
   $test->correction(); // Correction du test
}
?>
</body>
</html>