|
Posted by ibizara on 01/24/08 12:38
> Hmmm? I often use my spambucket hotmail address (see my mailaddress :) )of
> 10 years ago for sites I'm not sure about. (Yes, I can still access it,
> but I normally won't unless I just registered with that mail / about once
> every 1 or 2 months)
>
> if(preg_match('/@(hsbc|barclays|hotmail)\.com$/i',$email)){
> //the code}
// Receiving variables
@$email = addslashes($_POST['email']);
if (! ereg('^[*a-z\'0-9]+([._-][*a-z\'0-9]+)*@([a-z0-9]+([._-][a-
z0-9]+))+$', $email)){
include_once("error.inc");
die();
}
if(preg_match('/@(hotmail|rbs|barclays|lloydstsb|hsbc|natwest)\.(com|co
\.uk)$/i',$email)){
include_once("not_allowed.inc");
die();
}
======================
Thanks for the help :)
======================
For info this is just for a whitelist that we have created for users
to add email addresses into.
Although I do not wish for *@hotmail.com to come through I do wish for
user@hotmail.com to come through.
Any guidance on using the " * " not as a wildcard... ??
if(preg_match('[*]/@(hotmail... ??
Thanks,
J
Navigation:
[Reply to this message]
|