From 829b392bcaefa713ad123ae4b8c9bde239e129de Mon Sep 17 00:00:00 2001 From: Bertrand Date: Wed, 23 May 2012 16:18:36 +0200 Subject: [PATCH] error on questions.php --- questions.php | 4 ++-- validation.php | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/questions.php b/questions.php index 1b43c39..b3bb357 100755 --- a/questions.php +++ b/questions.php @@ -58,7 +58,7 @@ if (isset ($_POST['send'])) // Get an email from the list - echo 'Mail of user : ' . $_POST['email'] . "
"; + 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 . "
"; + echo 'Adresse mail: ' . $line; fclose($file); /* This code works, perhaps should be placed in a method in Question class? diff --git a/validation.php b/validation.php index eb2491c..e8d58af 100644 --- a/validation.php +++ b/validation.php @@ -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();