Advertisement
ferdhika31

Email Validation

Aug 6th, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.19 KB | None | 0 0
  1. if ((utf8_strlen($this->request->post['email']) > 96) || !preg_match('/^[^\@]+@.*.[a-z]{2,15}$/i', $this->request->post['email'])){
  2.     $json['error']['email'] = $this->language->get('error_email');
  3. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement