title: Two reCaptcha on one page, how to verify in php?
body: <p>i am trying to use 2x reCapcha on one page that has 2 forms. I managet to show them separately, bude i cant verify the data now. To verify i use two separate functions like this </p>
  
  <pre><code>$recaptcha = $_POST['g-recaptcha-response'];
  if(!empty($recaptcha)) {
      $google_url = "https://www.google.com/recaptcha/api/siteverify";
      $secret = 'secret';
      $ip = $_SERVER['REMOTE_ADDR'];
      $url = $google_url."secret=".$secret."&amp;response=".$recaptcha."&amp;remoteip=".$ip;
      $res = getCurlData($url);
      $res = json_decode($res, true);
      ...
      if($res['success']) { do stuff }
  </code></pre>
  
  <p>to load my 2 capchas i use </p>
  
  <pre><code>&lt;script src="//www.google.com/recaptcha/api.js?onload=myCallBack&amp;render=explicit" async defer&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  
    var recaptcha1;
    var recaptcha2;
    var myCallBack = function() {
      //Render the recaptcha1 on the element with ID "recaptcha1"
      recaptcha1 = grecaptcha.render('recaptcha1', {
        'sitekey' : 'key', //Replace this with your Site key
        'theme' : 'light'
      });
  
      //Render the recaptcha2 on the element with ID "recaptcha2"
      recaptcha2 = grecaptcha.render('recaptcha2', {
        'sitekey' : 'key', //Replace this with your Site key
        'theme' : 'light'
      });
    };
  &lt;/script&gt;
  </code></pre>
  
  <p>can somebody help me how can i do it? Is this even posible? </p>