You are here: Re: Create mail/contact form « All PHP « IT news, forums, messages
Re: Create mail/contact form

Posted by Geoff Berrow on 07/19/05 13:34

I noticed that Message-ID:
<258c8$42dccd76$513b49d4$24169@news.versatel.nl> from Stephanie
contained the following:

>I tried to add some e-mail vallidation but is fails.
>
>if(!$_POST['email']&&$req_email||ereg("/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/")){
> $missing[]=$req_email;
> $red[1]=" class=\"red\"";
>
>It only validates if the field is not empty, but not for a valid email
>address.

Validate this: me@privacy.net
Validate this: bl@cldog.co.uk
Validate this: bill@microsoft.com

The first one is a black hole, the second is a typo, the third is not
mine. All would pass as valid with a regex checker. None are valid (in
that you won't get a reply from any of them)

I think it's a bit pointless really. Some forms ask for the email
address to be typed twice then compare the two which /may/ help prevent
typos. But the only way to check if an email address is valid is to
send mail to it, and see if you get a response.


--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011

 

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

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