You are here: newbie needs bit of elp - contact form « All PHP « IT news, forums, messages
newbie needs bit of elp - contact form

Posted by KJO on 09/20/05 04:26

Hi,

I've inherited a site which contains a php contact form. Included is the
following which I believe checks to make sure the name and email fields
contain something.

if ($Name <= "")
$message = "<font color="red"><b>Please enter your name.</b></font>";
else if ($Email <= "")
$message = "<font color="red">Please enter your email address.</b></font>";


I need to add an extra little bit to determine if the person's email is
form the domain aol.com and set $message accordingly.

So basically anything@aol.com should result in $message = "aol users please
go to: link"

Basically I need to send aol'ers somewhere else (long story why). How
would I work this into the above?

Thanks.

 

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

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