error on questions.php

This commit is contained in:
Bertrand 2012-05-23 16:18:36 +02:00
parent 4f23496a57
commit 829b392bca
2 changed files with 2 additions and 3 deletions

View File

@ -58,7 +58,7 @@ if (isset ($_POST['send']))
// Get an email from the list
echo 'Mail of user : ' . $_POST['email'] . "<br/>";
echo 'Mail of user : ' . $_POST['email'];
$file = fopen('email.txt', 'r');
$number = fgets($file);
@ -77,7 +77,7 @@ if (isset ($_POST['send']))
break;
}
}
echo 'Adresse mail: ' . $line . "<br/>";
echo 'Adresse mail: ' . $line;
fclose($file);
/* This code works, perhaps should be placed in a method in Question class?

View File

@ -6,7 +6,6 @@ include("QuestionsFile.class.php");
$id = $_GET['id'];
echo $id;
$file = new QuestionsFile("questions.xml");
$question = $file->get_question($id);
$question->print_test();