Stopping Form Mail Spam Here's how it works. You put a form field in your form that if selected, the form is sent to a bogus email account. Human beings can't see the field because you made it invisible using CSS, therefore they can NOT select it. Robots only see the code and fill it in. This is what you put on the form.............................
Please check if you are an animal. Yes No
This was added to the CSS file......................... #pest {display:none;} /* this is used on the form to stop peskies. */ This was added to all the PHP file that process the form mail.................. // Send email. This was altered for the animals. See form mail notes in scripts. $pest = array( 'Yes' => 'stevenw4animals@gmail.com', 'No' => 'stevenw4animals@gmail.com', '' => 'stefanie@autism-programs.com', ); $my_email = $pest[$_REQUEST['pest']]; mail($my_email,$subject,$message,$headers);