You are here: Re: How to format text in a mailto: « All PHP « IT news, forums, messages
Re: How to format text in a mailto:

Posted by Rik on 10/10/17 11:51

Jon Thompson wrote:
> I use this to validate the email address entered into a form. Might be
> useful:
>
> function ValidateEmailAddress($EmailAddress){
> $EmailAddress = strtolower(trim($EmailAddress));
> if
> (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z
> {2,4})$", $EmailAddress)){ return FALSE;
> } else {
> return $EmailAddress;
> }
> }

Which will exclude a lot of valid emailadresses. We recently had a
discussion on this on comp.lang.javascript. Check
http://en.wikipedia.org/wiki/Email_address#Limitations

Grtz,
--
Rik Wasmus

 

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

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