Welcome Guest, Not a member yet? Register   Sign In
Problem with the email validation
#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.


Messages In This Thread
Problem with the email validation - by El Forum - 06-29-2012, 04:12 AM
Problem with the email validation - by El Forum - 06-29-2012, 04:40 AM
Problem with the email validation - by El Forum - 06-29-2012, 04:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB