"); if($_SERVER["HTTP_HOST"] == "plugup.com") { if(ereg("@",$_POST["email"])) { if(ereg("contact.php",$_SERVER["HTTP_REFERER"])) { $test = $_POST["name"].$_POST["email"].$_POST["phone"].$_POST["message"]; if(substr_count($test,"@") > 2) { IsSpam(); exit; } $msg = "name: ".stripslashes($_POST["name"]); $msg .= "\nemail: ".stripslashes($_POST["email"]); $msg .= "\nphone: ".stripslashes($_POST["phone"]); $msg .= "\n\nmessage: \n".stripslashes($_POST["message"]); mail("marilyn@plugup.com","message from your plugup.com contact page",$msg); echo("

Thank you. Your request will receive our prompt attention.

"); } } } function IsSpam() { $ff = fopen("/home/sites/site4/web/spamreport","a"); $report = date("d/m/Y G:i:s"); $report .= "\nname ".$_POST["name"]; $report .= "\nemail ".$_POST["email"]; $report .= "\nphone ".$_POST["phone"]; $report .= "\nmessage ".$_POST["message"]; $report .= "\n______________________\n\n"; fwrite($ff,$report); fclose($ff); print "spam detected"; exit; } ?>

Contact Now Hear This

Please provide either a telephone number or an email address so that we may reply to you. You may feel assured that we will not use your contact information for any other purpose than this.

Name:
Email:
Phone:
Message: