diff --git a/src/act.php b/src/act.php index 893ce42..06f947b 100644 --- a/src/act.php +++ b/src/act.php @@ -40,18 +40,13 @@ switch($_POST['act']){ || (substr_count('.@',$_POST['email']) > 0) || (substr_count('@.',$_POST['email']) > 0) || (substr_count('..',$_POST['email']) > 0) - || (substr_count('.',$_POST['email']) == 1) + || (substr_count('.',$_POST['email']) == 0) ){ $alerts.="L'email n'est pas valide\n"; } - - - - - if($alerts <>""){ echo $alerts; }else{