include("admin/config/site-includes.php"); /*$date = date("Y-m-d");// current date $date = strtotime(date("Y-m-d", strtotime($date)) . " +9 month"); echo $Expire_Date=date('d-m-Y',$date);*/ $Q1="SELECT * FROM tbl_cms WHERE page_id='9' AND status='1'"; $Res1=mysqli_query($conObj, $Q1); $R1=mysqli_fetch_object($Res1); if($_POST['mode']=="contact") { require_once('recaptchalib.php'); // Get a key from https://www.google.com/recaptcha/admin/create $publickey = "6LdK0b0SAAAAADBOTlGODD-BD4vR_9IPtOfOD8w8"; $privatekey = "6LdK0b0SAAAAAACWxCEZjoqbvKP4FMiDfkFpU6rP"; # the response from reCAPTCHA $resp = null; # the error code from reCAPTCHA, if any $error = null; # was there a reCAPTCHA response? if ($_POST["recaptcha_response_field"]) { $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if ($resp->is_valid) { $name=$_REQUEST['name']; $address=nl2br($_REQUEST['address']); $email=$_REQUEST['email']; $phone=$_REQUEST['phone']; $message=nl2br($_REQUEST['message']); $timecall=$_REQUEST['timecall']; $hearabout=$_REQUEST['hearabout']; $intarest=$_REQUEST['intarest']; // ---------------- SEND MAIL FORM ---------------- // send e-mail to ... $to = $admin_mail; $subject="Contact Details from ".$site_name; // Your message $message1='
Name | '.$name.' |
'.$email.' | |
Phone | '.$phone.' |
Best time to call | '.$timecall.' |
Hear about us | '.$hearabout.' |
Interest in | '.$intarest.' |
Message | '.$message.' |