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
|
//email => doit être valide
|
||||||
//only oner @
|
if (filter_var($_POST['email'], FILTER_VALIDATE_EMAIL)) {
|
||||||
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)
|
|
||||||
){
|
|
||||||
$alerts.="L'email n'est pas valide\n";
|
$alerts.="L'email n'est pas valide\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if($alerts <>""){
|
if($alerts <>""){
|
||||||
echo $alerts;
|
echo $alerts;
|
||||||
}else{
|
}else{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user