Welcome Guest, Not a member yet? Register   Sign In
Problem with the email validation
#1

[eluser]Unknown[/eluser]
"[email protected]"
The email in the double quote is getting error while validating.
Codeigniter is not allowing this email.
Whereas this is a valid gmail account.

Can someone plz help me.
#2

[eluser]marcogmonteiro[/eluser]
the function valid_email is probably not allowing you to have 2 points after the @. Not sure though. I'm not that good at regex but look at the code inside the form validation lib .

Code:
public function valid_email($str)
{
  return ( ! preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $str)) ? FALSE : TRUE;
}

maybe someone can help you from here.
#3

[eluser]Unknown[/eluser]
Thanks a lot ....




Theme © iAndrew 2016 - Forum software by © MyBB