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]
|