PDA

View Full Version : blank php email from form



bberry91
10 Aug 2010, 11:43 AM
I get these e-mails that are blank, that are being sent by our contact page (http://vicosautobody.com/contact.php). how can they do this when there are required fields, and there is captcha? i thought that it was suppose to stop spam. can they view the e-mail address that it is being sent to?

erilidon
10 Aug 2010, 01:02 PM
the only field that is required is the captcha and they do make programs the automatically fills them in I would solve it by requiring some data to be present in the fields before php will submit it (ie name, email).

There are several different ways to do this but I find the easiest way is to use an if statement like this:


if(isset($name != "") && ($email != "") { then you function }