Thanks for the replies so far – basically the form redirects to a PHP page which originally used this script <?php $ip = $_POST['ip']; $httpref = $_POST['httpref']; $httpagent = $_POST['httpagent']; $visitor = $_POST['visitor']; $visitormail = $_POST['visitormail']; $visitorphone = $_POST['visitorphone']; $address1 = $_POST['address1']; $address2 = $_POST['address2']; $city = $_POST['city']; $state = $_POST['state']; $zip = $_POST['zip']; $notes = $_POST['notes']; if (eregi('http:', $notes)) { die ("Do NOT try that! ! "); } if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,"."))) { echo "<h2>Use Back - Enter valid e-mail</h2>\n"; $badinput = "<h2>Your message was NOT submitted</h2>\n"; echo $badinput; die ("Go back! ! "); } if(empty($Name) || empty($email) || empty($textarea)) { echo "<h2>Use your Back button - fill in all fields, No message was sent.</h2>\n"; die ("Use back! ! "); } $todayis = date("l, F j, Y, g:i a") ; $subject = Contact_from_your_webpage; $notes = stripcslashes($notes); $message = " $todayis [EST] \n Message: $notes \n From: $visitor ($Name)\n From: $visitor ($email)\n Additional Info : IP = $ip \n Browser Info: $httpagent \n Referral : $httpref \n "; $from = "From: $visitormail\r\n"; mail("xxxxxx@xxxxxxxxxxxx", $subject, $message, $from); //check if form was sent if($_POST){ $to = 'xxxxxx@xxxxxxxxxxxx'; $subject = 'Testing HoneyPot'; $header = "From: $name <$name>"; $Name = $_POST['Name']; $email = $_POST['email']; $textarea = $_POST['textarea']; //honey pot field $honeypot = $_POST['firstname']; //check if the honeypot field is filled out. If not, send a mail. if( $honeypot > 1 ){ return; //you may add code here to echo an error etc. }else{ mail( $to, $subject, $message, $header ); } } if($_POST['nospam_field_name'] != ''){ echo "It appears you are a spambot! Form processing aborted"; } else{ //process the rest of the form } ?> <p> Date: <?php echo $todayis ?> <br /> Thank You : <?php echo $Name ?> ( <?php echo $email ?> ) <br /> Message:<br /> <?php $notesout = str_replace("\r", "<br/>", $notes); echo $notesout; ?> <br /> <?php echo $ip ?> I did realise just now that one other issue is the idea was it was supposed to redirect to a thank you page when the form was successfully sent – I did see Nancy's tutorial on forms and PHP
... View more