diff --git a/inc/sendEmail.php b/inc/sendEmail.php index c54ea01..96c750a 100755 --- a/inc/sendEmail.php +++ b/inc/sendEmail.php @@ -9,9 +9,9 @@ if($_POST) { $email = trim(stripslashes($_POST['contactEmail'])); $subject = trim(stripslashes($_POST['contactSubject'])); $contact_message = trim(stripslashes($_POST['contactMessage'])); - if(isset($_POST['contactCaptcha'])){ - $captcha = $_POST['contactCaptcha']; - } + // if(isset($_POST['contactCaptcha'])){ + // $captcha = $_POST['contactCaptcha']; + // } // Check Name if (strlen($name) < 2) { @@ -26,14 +26,14 @@ if($_POST) { $error['message'] = "Please enter your message. It should have at least 10 characters."; } // Captcha - if (!$captcha){ - $error['captcha'] = "Please check the CAPTCHA field."; - } else { + // if (!$captcha){ + // $error['captcha'] = "Please check the CAPTCHA field."; + // } else { $captchaResponse = json_decode(file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=6Le7VisUAAAAAKExpdr5NJy8AHGM0Y3iPI1eVZgD&response=".$captcha."&remoteip=".$_SERVER['REMOTE_ADDR']), true); if($captchaResponse['success'] == false) { $error['captcha'] = "You are a robot."; - } - } + // } + // } $mail = new PHPMailer; diff --git a/index.html b/index.html index b3f06e3..86b8517 100755 --- a/index.html +++ b/index.html @@ -393,10 +393,11 @@ - +