zc1
10-05-2007, 04:01 PM
Hi,
I have found the below code I change it to *.EXT instead of the ending of the email address for example *.com
Now if someone had abc.EXT@my-domain.co.uk would the below code echo the message or would it let it pass and only block abc@my-domain.ext ?
Also does anyone know if it is case sensitive ?
Finally how would I have to to check for .EXT and .EXT1 etc..., would I need to repeat the code or can I have it all within the same code, if so how ?
// test block of *.EXT emails
if ( preg_match( "#\.EXT$#", $email ) ) {
echo 'The email address you entered is not allowed.';
exit;
}
I have found the below code I change it to *.EXT instead of the ending of the email address for example *.com
Now if someone had abc.EXT@my-domain.co.uk would the below code echo the message or would it let it pass and only block abc@my-domain.ext ?
Also does anyone know if it is case sensitive ?
Finally how would I have to to check for .EXT and .EXT1 etc..., would I need to repeat the code or can I have it all within the same code, if so how ?
// test block of *.EXT emails
if ( preg_match( "#\.EXT$#", $email ) ) {
echo 'The email address you entered is not allowed.';
exit;
}