Hey all, I am trying to mod some code that does a validation check on an e-mail address field on a form. I have been looking all over the script for Javascript that was doing it and couldn't find it, then I came across this
function is_email($email){
$rBool=false;
if(preg_match("/[\w\.\-]+@\w+[\w\.\-]*?\.\w{1,4}/", $email)){
$rBool=true;
}
return $rBool;
I must admit I can't decipher this. Is this an e-mail validation function? And if so can some one give me a run down on what it is doing?
What i would LIKE to do is configure the validation to only allow submissions from a specific domain...
i.e. something@specificdomain.com
Thanx for the help!!