1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
$user = strip_tags(substr($_POST['user'],0,MAX_USER_TAILLE));
$pass = strip_tags(substr($_POST['pass'],0,MAX_PASS_TAILLE));
while ( $donnees = mysql_fetch_array($reponse) )
{
if ($donnees['nom'] == $user)
{
if($donnees['password'] == $pass)
{
renvoi("validation.php3");
}
else
{
echo "<table align=\"center\"><tr><td>";
echo "<br><br><br><br><br><br><br><br><br>";
affichage_alerte ("5", "red", "Nom d’utilisateur ou mot de passe incorrect");
echo "</td></tr></table>";
break; //Arretez la boucle while
}
}
} |