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

Posted by Sander on 09/20/05 08:51

"KJO" <ihatespam@thanks.com> schreef in bericht
news:96D6C05DDkarlcsueduco@216.196.97.136...

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

Hi,

Check out http://nl3.php.net/manual/nl/function.strstr.php.

You can make something like:
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>";
elseif(strstr ($email, '@aol.com');
{
$message = "<font color="red">Aol.com sender should give more information.
Visit link etc etc</b></font>";
}

Good luck

 

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

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