Adding reCapture v2

Add this script into your header: <script src='' async defer ></script>

Place this div where you want the reCapture to appear: <div class="g-recaptcha" data-sitekey=sectet_key></div>

In form action file

 if (isset($_POST['g-recaptcha-response']) && ! empty($_POST['g-recaptcha-response'])) {
      $secret = 'secret_key';
      $verifyResponse = file_get_contents(''.$secret.'&response='.$_POST['g-recaptcha-response']);
      $responseData = json_decode($verifyResponse);
          $succMsg = 'Your contact request have submitted successfully.';
      } else {
          $errMsg = 'Robot verification failed, please try again.';

You can use these key to test in you local build:
Secret key: 6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe

Submit button only shows when reCApture is checked:

<script type="text/javascript">
      function recaptchaCallback() {