This commit is contained in:
Bertrand 2012-05-23 16:06:47 +02:00
parent 200d0bf939
commit 4f23496a57

View File

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