Hello,
I have setup the mail function, and it works fine and mails the message to me and everything else it's supposed to do except I can't get this to work: when the person hits submit and doesn't type in his/her email address, I want it to print an error. So I have something like this:
if(isset($email)){$emailtrue="yes";}
else if($email==''){$emailtrue="no";}
and if it $emailtrue==yes it is supposed to mail the message to me else if $emailtrue==no then it is supposed to print the error message. Anyway, no matter what it always thinks that $emailtrue==yes. I am using GET for the form method. So if you don't type in an email address is comes up in the address bar like this:
http://www.tamr.org/index.php?display=contact&subpage=send&from=&email=&to=Webmaster&subject=&message=
So $email should be false there. I have tried elseif(empty($email)) and other stuff, but it always seems to think if email= is in the address that it is a set varible. If I just manually delete email= from the address bar, it prints my error message just fine. So the question is how do I get it to reconize that email= or $emailtrue is empty and to print the error message?
Thanks in advance, sorry for being so long-winded and probably confusing.
-Lou