php probleme on validaion page
This commit is contained in:
parent
25f8396455
commit
a1c1244e14
3 changed files with 20 additions and 14 deletions
|
|
@ -1,17 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<?php
|
||||
include("Question.class.php");
|
||||
include("QuestionsFile.class.php");
|
||||
include("Question.class.php");
|
||||
include("QuestionsFile.class.php");
|
||||
|
||||
function print_question()
|
||||
{
|
||||
$id = $_GET['id'];
|
||||
$file = new QuestionsFile('questions.xml');
|
||||
$id = $_GET['id'];
|
||||
echo $id;
|
||||
|
||||
$file = new QuestionsFile("questions.xml");
|
||||
$question = $file->get_question($id);
|
||||
$question->print_test();
|
||||
|
||||
$questions = $file->get_question($id);
|
||||
$question->print_test();
|
||||
}
|
||||
?>
|
||||
|
||||
<html>
|
||||
|
|
@ -21,11 +20,14 @@ function print_question()
|
|||
<body>
|
||||
|
||||
<h1>Validation de la question</h1>
|
||||
<h3>Rappel de la question</h3>
|
||||
<?php $question->print_test() ?><br/>
|
||||
|
||||
Vous pouvez valider la question. Cliquez simplement sur le
|
||||
lien ci dessous.<br/>
|
||||
|
||||
<input type="button" value="Valider la question"
|
||||
onclick="<?php print_questions(); ?>"/>
|
||||
onclick='<?php $question->validate() ?>'/>
|
||||
|
||||
|
||||
</body>
|
||||
|
|
|
|||
Reference in a new issue