hi all --
i setup a list serve subscription script, including the following working email validation code:
...
elseif(!(getmxrr(substr(strstr($formVars["email"],'@'),1),$temp)) || checkdnsrr(gethostbyname(substr(strstr($formVars["email"],'@'),1)),"ANY"))
$errorString .="The domain does not exist.";
...
i need to include an exception for the noaa.gov domain, which is coming up as unresolved (due to their setup) - i tried the following with no luck:
...
elseif(!(getmxrr(substr(strstr($formVars["email"],'@'),1),$temp)) || checkdnsrr(gethostbyname(substr(strstr($formVars["email"],'@'),1)),"ANY") || (substr(strstr($formVars["email"],'@'),1))=="noaa.gov" )
$errorString .="The domain does not exist.";
...
what's the correct syntax to add this exception in? thanks!!!