title: Automatically send a form when google recaptcha V2 is completed
body: <p>i have installed google recaptcha V2 on my site, and i want automatically submit a form (WITHOUT PRESS ANY BUTTON) when google recaptcha is completed, here is my code...</p>
  
  <pre><code>$secretKey='HIDDEN';
  $responseKey=$_POST['g-recaptcha-response'];
  $IP=$_SERVER['REMOTE_ADDR'];
  $url="https://www.google.com/recaptcha/api/siteverify?secret=$secretKey&amp;response=$responseKey&amp;remoteip=$IP";
  $response=file_get_contents($url);
  $response=json_decode($response);
      if($response-&gt;success){
           ....execute some php
      }
  </code></pre>
  
  <p>And here is my form....</p>
  
  <pre><code>&lt;form action="" method="post" class="Form" enctype="multipart/form-data"&gt;
        &lt;div class="g-recaptcha"  data-sitekey="HIDDEN"&gt;&lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Thanks for read, have a nice day!</p>