require('includes/codes.php');
require('includes/email.php');
require('includes/mailchimp.php');
$mode=$_REQUEST["mode"];
$recaptcha_key="6LeCriAUAAAAADsS8--puS-i-SqRBk4ed8J5BDGR";
$recaptcha_secret="6LeCriAUAAAAAAp_mnPiNABzk7keHR0cLFoDNGKI";
if ($mode!="")
{
$first_name=trim($_REQUEST["first_name"]);
$last_name=trim($_REQUEST["last_name"]);
$email=trim($_REQUEST["email"]);
$comment=trim($_REQUEST["comment"]);
$company=trim($_REQUEST["company"]);
$job_title=trim($_REQUEST["job_title"]);
$newsletter=($_REQUEST["newsletter"]) ? "Yes" : "No" ;
$captcha=false;
if (isset($_POST['g-recaptcha-response']) && !empty($_POST['g-recaptcha-response']))
{
//get verify response data
$verifyResponse = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret='.$recaptcha_secret.'&response='.$_POST['g-recaptcha-response']."&remoteip=".$_SERVER['REMOTE_ADDR']);
//echo "$verifyResponse
";
$responseData = json_decode($verifyResponse);
if($responseData->success)
$captcha=true;
}
if (!$captcha)
$err_msg="You must click \"I'm not a Robot\"";
elseif($first_name=="" || $last_name=="" || $email=="" || $comment=="")
{
$err_msg = "First Name, Last Name, Email Address and/or Comments are missing.";
}
else
{
$subject="How2Power Contact";
$body_text="
How2Power Contact:"."
\r\n" ."Name: ".$first_name." ".$last_name."![]() |
||||||
| include ("menu_top.html");?> | ||||||
|
||||||
| include ("menu_bottom.html");?> | ||||||