You are here: Re: PHP Redirect « PHP Programming Language « IT news, forums, messages
Re: PHP Redirect

Posted by dan on 01/25/07 21:15

On Jan 16, 10:42 am, John <John_nos...@nnnnnnnnn.nowhere> wrote:
> }function isValidEmail($email){
> $pattern =
> "^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$";
>
> if (eregi($pattern, $email)){
> return true;
> }
> else {
> return false;
> }

OK, this isn't the main topic of this thread, but I have to remark
about the above function which was posted as an example of the code
John is using; it appears that this requires as one aspect of a "valid"
e-mail address that it have a top-level domain that is exactly 2 or 3
characters long, which would exclude addresses in .info, .name,
..museum, and some other TLDs.

--
Dan

 

Navigation:

[Reply to this 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

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