Welcome Guest, Not a member yet? Register   Sign In
Custom validation rules?
#2

[eluser]Pascal Kriete[/eluser]
Something like this might work:
Code:
$parts = explode("@", $email);
$domain = $parts[1];

//Check if $domain is in list of allowed domain - using an array here
if (! in_array($domain, $allowed_array))
    //error
else
   //Yay


Messages In This Thread
Custom validation rules? - by El Forum - 01-19-2008, 02:37 PM
Custom validation rules? - by El Forum - 01-19-2008, 02:49 PM
Custom validation rules? - by El Forum - 01-19-2008, 03:01 PM
Custom validation rules? - by El Forum - 01-19-2008, 03:16 PM
Custom validation rules? - by El Forum - 01-19-2008, 03:31 PM
Custom validation rules? - by El Forum - 01-19-2008, 04:56 PM
Custom validation rules? - by El Forum - 01-19-2008, 05:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB