Reply to Re: Email Validation (Block Unwanted Addresses)

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация