?
This commit is contained in:
parent
200d0bf939
commit
4f23496a57
@ -58,6 +58,8 @@ if (isset ($_POST['send']))
|
||||
|
||||
// Get an email from the list
|
||||
|
||||
echo 'Mail of user : ' . $_POST['email'] . "<br/>";
|
||||
|
||||
$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 . "<br/>";
|
||||
fclose($file);
|
||||
|
||||
/* This code works, perhaps should be placed in a method in Question class?
|
||||
|
Reference in New Issue
Block a user