Get In Touch
Phone
require_once "newrecaptchalib.php"; $secret = "6LfotuAhAAAAAAwwmI918YQ4XiR36pe-_1k5SDIS"; $response = null; $reCaptcha = new ReCaptcha($secret); if ($_POST["g-recaptcha-response"]) { $response = $reCaptcha->verifyResponse( $_SERVER["REMOTE_ADDR"], $_POST["g-recaptcha-response"] ); } if ($response != null && $response->success) { echo "success reponse form google reCaptcha, insert data into database."; } else { echo ""; } ?>