Liam Delahunty: Home Tips Web Contact
Recommended laptop
under £500

Think I deserve a present? See my Amazon Wish List

Contact Form to combat Email Injection Spam

Simply wrap your form handling in the followng clause to test if the form was submitted locally or by a remote script.

if ($submit){
    while (list($key,$val) = each($HTTP_POST_VARS)){
      $message .= "$key: $val\n";
    // email admin or ignore...
    // deal with email normally...

Share this!  

Php Contact Form | Php Contact Form Anti Spam | Php Convert String To Title Case


  Tips | Home | Search | Contact

Link here: