Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if($variable == 'email')
- {
- if(!empty($this->email))
- {
- if((filter_var($this->email,FILTER_VALIDATE_EMAIL)))
- {
- return true;
- }
- else
- $this->erreurs[] = EMAIL_INVALIDE;
- return false;
- }
- else
- $this->erreurs[] = EMAIL_VIDE;
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement