?
This commit is contained in:
parent
7e7b77769f
commit
6e687402af
3 changed files with 19 additions and 3 deletions
|
|
@ -68,6 +68,22 @@ if (isset ($_POST['send']))
|
|||
for ($i = 0; $i < $random; $i++)
|
||||
{
|
||||
$line = fgets($file);
|
||||
echo $line . "<br/>";
|
||||
}
|
||||
|
||||
/* Oui, c'est moche de le réecrire 2 fois mais ma première belle
|
||||
tentative s'est soldée par un echec
|
||||
*/
|
||||
|
||||
while ($line == $_POST['email'])
|
||||
{
|
||||
$random = rand(1, $number);
|
||||
|
||||
for ($i = 0; $i < $random; $i++)
|
||||
{
|
||||
$line = fgets($file);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
echo 'Adresse mail: ' . $line . "<br/>";
|
||||
|
|
|
|||
Reference in a new issue