score < 0.5) { echo "We are very sorry, but your Captcha score is too low."; die(); } } $adminEmail = "infocuspub@gmail.com"; $domainUrlUpper = str_replace("www.","",$_SERVER['HTTP_HOST']); //Email Injection Trap foreach ($_POST as $j =>$value) { if (stristr($value,"Content-Type")) { header("HTTP/1.0 403 Forbidden"); exit; } } $fromEmail = $_REQUEST['fromEmail']; $comments = $_REQUEST['comments']; $message = ""; if($_REQUEST['action'] == "submit"){ $message = ""; $result = ""; if($fromEmail != "" && $comments != "" ){ if(audit()){ $subject = "Contact Form (".$domainUrlUpper.")"; $mailBody = $comments; send_mail($fromEmail, $subject, $mailBody); $result = "verified"; $message = "Thank You! Your comments have been sent
"; }else{ $message = "Error: Your entered an Invalid Code
"; } }else{ $message = "Error: Missing fields (all fields are required)
"; } } function send_mail($fromEmail, $subject, $mailBody){ global $adminEmail; global $domainUrlUpper; $headers = "To: ".$adminEmail."\r\n"; $headers .= "From: ".$domainUrlUpper."<".$fromEmail.">\r\n"; $headers .= "Reply-To: ".$fromEmail."\r\n"; mail($adminEmail, $subject, $mailBody, $headers); } function audit() { session_start(); $digit = $_SESSION['digit']; $userdigit = $_POST['userdigit']; session_destroy(); if (($digit == $userdigit) && ($digit > 1)) { return true; } else { return false; } } ?> Web Design Directory

Contact Us

If you have any questions or comments, simply fill out the form below (if you want reply back make sure you enter a valid email).

*Email Address:


*Comments:



*Enter Code: