• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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 ....


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.