title: Google ReCaptcha - Missing input response
body: <p>I have a contact form and I want to avoid bots by using google recaptcha.  I am getting the error: missing-input-response and I do not why I think I am following the steps right. Please help me.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>&lt;form method="post" id="ContactForm" action="contact2.php"&gt;    
  &lt;input placeholder="Name" type="text" name="name" id="name" &gt;                       
  &lt;input placeholder="E-Mail" type="email" name="contactemail"  id="contactemail"&gt;            
  &lt;input placeholder="Organization Name" type="text" name="orgname" id="orgname" &gt;
  &lt;input placeholder="Subject" type="text" name="sub" id="sub" class="StyleTxtField inputBg" style="background: url(images/subject.png) no-repeat left center; background-color:white; " required&gt;
  &lt;textarea rows=5 cols=200 placeholder="Your e-mail" name="body" id="body" &gt;&lt;/textarea&gt;
  
  &lt;div class="g-recaptcha" data-sitekey="..."&gt;&lt;/div&gt;
  &lt;span id="wrongcap" class="wrongInput"&gt;*Wrong !&lt;/span&gt;
  
  &lt;button type="submit" id="button"  class="send"&gt;Send&lt;/button&gt;       
  
  &lt;/form&gt;
  </code></pre>
  
  <p>and here how i check in contact2.php</p>
  
  <pre><code>    $url= 'https://www.google.com/recaptcha/api/siteverify';
      $privatekey='...';
      $respnose= file_get_contents($url."?secret=".$privatekey."&amp;response=".$_POST['g-recaptcha-respnose']);
      $data = json_decode($respnose);
      echo $respnose;
      echo "-1";
      if(isset($data-&gt;success) AND $data-&gt;success==true){
         echo "0";
      }else{
         echo "1";
      }
  </code></pre>