Reply to Re: [PHP] Re: Email Validation built-in? RFC

Your name:

Reply:


Posted by "Richard Lynch" on 10/23/05 04:59

On Sat, October 22, 2005 2:32 pm, James Benson wrote:
> It would be nice to have a php function valid_email or something but
> until then i suppose we just make do with what is available, for what
> I
> need I use the following:-
>
> eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*"
> ."@"."([a-z0-9]+([\.-][a-z0-9]+)*)+"."\\.[a-z]{2,}"."$",$email)
>
> Ive never had problems with it but have up to now no need for
> multilanguage validation.
>
> What is wrong with that validation anyway?

If you are lucky, it does not reject any valid emails.

For sure, however, it is not the 3-page 'correct' validation and
therefore must accept at least SOME invalid emails...

Almost for sure, it doesn't accept the new-fangled international emails.

Presumably, if a built-in PHP function did this, changing it in one
place would make everybody's code work right for this monumental
change...

--
Like Music?
http://l-i-e.com/artists.htm

[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

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