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

Posted by Terry on 07/20/05 01:28

Stephanie wrote:
> Warning messages now within fieldset. (fixed)
>
> Still interested in validating email address (not validating if it exists,
> but if it's a valid syntax)

$email=eregi_replace("[^a-z0-9@\.\-_]*","",$email);
//replace any non valid characters with ""

if(!$email == "" && (!strstr($email,"@") || !strstr($email,".")))
{
echo $beginhtml,"e-mail ($email) is not a valid address, please correct
it or make sure it is blank.",$endhtml;
exit;

HTH

--
TK
http://www.wejuggle2.com/
Still Having a Ball


A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet?




..

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----

 

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

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