Leave Us A Review
############################################################################
# THIS CHUNK OF CODE IS THE CONTACT FORM OPTION
#
$dontSend="false";
#ini_set("sendmail_from", $email_from);
$email_from="website@".$row_otherDetailsRS['websiteDomain'];
if (isset($_POST['nameOrg'])){$theNameOrg=cleanQuery($_POST['nameOrg']);}else{$theNameOrg="";}
if (isset($_POST['area'])){$theArea=cleanQuery($_POST['area']);}else{$theArea="";}
if (isset($_POST['review'])){$theReview=cleanQuery($_POST['review']);}else{$theReview="";}
if($theNameOrg==""){$dontSend="true";}
if(strlen($theReview)<=6){$dontSend="true";}
if ($theArea==""){$dontSend="true";}
if ($dontSend!="true"){
$mailBody="NAME: ".$theNameOrg."\n\nAREA: ".$theArea."\n\n";
$mailBody.="REVIEW:\n-------------------------------------\n".$theReview."\n-------------------------------------";
$to=$row_otherDetailsRS['emailAddress'];
if(strpos($theArea,"*")!== false){$to="jim@harbornewebdesign.co.uk";}
$from=$email_from;
$subject="Review from ".$theNameOrg." via ".$row_otherDetailsRS['websiteDomain'];
#$headers = 'To: ' . $to . "\r\n";#notneeded
$headers .= 'Reply-To: '.$theEmail."\r\n";
$headers .= 'Return-Path: '.$theEmail."\r\n";#not needed
$headers .= 'From: '.$from."\r\n";
#$headers .= 'Cc: ' . '' . "\r\n";
#$headers .= 'Bcc: ' . '' . "\r\n";
if (isset($_POST['address']) && ($_POST['address']=="")){#IF HONEYPOT IS NOT FILLED OUT SEND
if (isset($_POST['humanOrBot']) && ($_POST['humanOrBot']=="8")){#IF IS NOT SPAMBOT SEND
mail($to, $subject, $mailBody, $headers);
}
}
#mail($to, $subject, $mailBody, $headers, '-f '.$email_from);
#echo $to."
".$subject."
".$mailBody."
".$headers;
#exit;
}
#
#
##############################################################################################
#
# THIS CHUNK OF CODE DISPLAYS THE CONTACT FORM OR, IF SENT, SHOWS A review TO SAY THAT IT HAS
#
if ($dontSend=="true"){?>
;}else{// end if form has been submitted?>
Thank you for submitting a review, your input is very much appreciated. To send another review please click here.
< Back
;}//if review has been sent
#
# THIS CHUNK OF CODE DISPLAYED THE CONTACT FORM OR GAVE A review TO SAY THAT THE review HAD ALREADY BEEN SENT
################################################################################################################
require_once('includes/reviewsCode.php');
?>