This commit is contained in:
gnieark 2015-12-04 22:20:04 +01:00
parent 49bea86e83
commit 651e51458e

View File

@ -34,19 +34,10 @@ switch($_POST['act']){
}
//email => doit être valide
//only oner @
if(
(substr_count('@',$_POST['email']) <> 1)
|| (substr_count('.@',$_POST['email']) > 0)
|| (substr_count('@.',$_POST['email']) > 0)
|| (substr_count('..',$_POST['email']) > 0)
|| (substr_count('.',$_POST['email']) == 0)
){
if (filter_var($_POST['email'], FILTER_VALIDATE_EMAIL)) {
$alerts.="L'email n'est pas valide\n";
}
if($alerts <>""){
echo $alerts;
}else{