Hi I need help with google reCaptcha v2:

I have a form http://sergiykravchuk.com/contacts.html with google reCaptcha v2 but in my code when person didn't check icon "I'm not a robot" recaptha code send person to clear page with words "Please check the the captcha form."
I need when person doesn't check icon I'm not a robot, page didn't sent person to the other page with words "Please check the the captcha form" for example https://www.google.com/recaptcha/api2/demo
I have a contact form (name, telephone and text message)
Here my php code:

<?php
$email;$comment;$captcha;
        if(isset($_POST['email'])){
          $email=$_POST['email'];
        }if(isset($_POST['comment'])){
          $email=$_POST['comment'];
        }if(isset($_POST['g-recaptcha-response'])){
          $captcha=$_POST['g-recaptcha-response'];
        }
        if(!$captcha){
          echo '<h2>Please check the the captcha form.</h2>';
          exit;
        }
        $secretKey = "*********";
        $ip = $_SERVER['REMOTE_ADDR'];
        $response=file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=".$secretKey."&response=".$captcha."&remoteip=".$ip);
        $responseKeys = json_decode($response,true);
        if(intval($responseKeys["success"]) !== 1) {
          echo '<h2>You are spammer ! Get the @$%K out</h2>';
        } else {
          echo '<h2>Thanks for posting comment.</h2>';
        }

Can you help me with it?

    Write a Reply...