plop
This commit is contained in:
parent
49bea86e83
commit
651e51458e
11
src/act.php
11
src/act.php
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue
Block a user