This commit is contained in:
Bertrand 2012-05-23 17:23:45 +02:00
commit 6e687402af
3 changed files with 19 additions and 3 deletions

View file

@ -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/>";