From 4f23496a5776f5356e930150404e4667e7c2b45f Mon Sep 17 00:00:00 2001 From: Bertrand Date: Wed, 23 May 2012 16:06:47 +0200 Subject: [PATCH] ? --- questions.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/questions.php b/questions.php index fd9013d..1b43c39 100755 --- a/questions.php +++ b/questions.php @@ -58,6 +58,8 @@ if (isset ($_POST['send'])) // Get an email from the list + echo 'Mail of user : ' . $_POST['email'] . "
"; + $file = fopen('email.txt', 'r'); $number = fgets($file); @@ -69,12 +71,13 @@ if (isset ($_POST['send'])) { $line = fgets($file); } - if ($line != $_POST['email']) + + if ($line != ($_POST['email']) { break; } } - + echo 'Adresse mail: ' . $line . "
"; fclose($file); /* This code works, perhaps should be placed in a method in Question class?