title: Recaptcha "incorrect-captcha-sol"
body: <p>Actual keys redacted&quot; <strong>I'm implementing a simple login form with ReCaptcha.</strong>
  The ReCaptcha gives me this error:
  <strong>&quot;The reCAPTCHA wasn't entered correctly. Go back and try it again. (reCAPTCHA said: incorrect-captcha-sol)&quot;</strong>
  This is my code:</p>
  <p><strong>Index.php</strong></p>
  <pre><code>&lt;table width=&quot;300&quot; border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;1&quot; bgcolor=&quot;#CCCCCC&quot;&gt;
      &lt;tr&gt;
          &lt;form name=&quot;form1&quot; method=&quot;post&quot; action=&quot;verify.php&quot;&gt;
              &lt;td&gt;
                  &lt;table width=&quot;100%&quot; border=&quot;0&quot; cellpadding=&quot;3&quot; cellspacing=&quot;1&quot; bgcolor=&quot;#FFFFFF&quot;&gt;
                      &lt;tr&gt;
                          &lt;td colspan=&quot;3&quot;&gt;&lt;strong&gt;Member Login &lt;/strong&gt;&lt;/td&gt;
                      &lt;/tr&gt;
  
                      &lt;tr&gt;
                          &lt;td width=&quot;78&quot;&gt;Username&lt;/td&gt;
                          &lt;td width=&quot;6&quot;&gt;:&lt;/td&gt;
                          &lt;td width=&quot;294&quot;&gt;&lt;input name=&quot;myusername&quot; type=&quot;text&quot; id=&quot;myusername&quot; /&gt;&lt;/td&gt;
                      &lt;/tr&gt;
  
                      &lt;tr&gt;
                          &lt;td&gt;Password&lt;/td&gt;
                          &lt;td&gt;:&lt;/td&gt;
                          &lt;td&gt;&lt;input name=&quot;mypassword&quot; type=&quot;text&quot; id=&quot;mypassword&quot; /&gt;&lt;/td&gt;
                      &lt;/tr&gt;
  
                      &lt;tr&gt;
                          &lt;td&gt;&amp;nbsp;&lt;/td&gt;
                          &lt;td&gt;&amp;nbsp;&lt;/td&gt;
                          &lt;td&gt;&lt;input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;Login&quot; /&gt;&lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/table&gt;
              &lt;/td&gt;
          &lt;/form&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  
  &lt;html&gt;
      &lt;title&gt;Title Dolan Webiste&lt;/title&gt;
      &lt;body&gt;
          &lt;script type=&quot;text/javascript&quot; src=&quot;http://www.google.com/recaptcha/api/challenge?k=actual_key_redacted&quot;&gt;&lt;/script&gt;
          &lt;noscript&gt;
              &lt;iframe src=&quot;http://www.google.com/recaptcha/api/noscript?k=actual_key_redacted&quot; height=&quot;300&quot; width=&quot;500&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
              &lt;textarea name=&quot;recaptcha_challenge_field&quot; rows=&quot;3&quot; cols=&quot;40&quot;&gt; &lt;/textarea&gt;
              &lt;input type=&quot;hidden&quot; name=&quot;recaptcha_response_field&quot; value=&quot;manual_challenge&quot; /&gt;
          &lt;/noscript&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p><strong>Verify.php</strong></p>
  <pre><code>&lt;?php
      echo &quot;&lt;pre&gt; _POST: =========\n&quot;;
      print_r($_POST);
      echo &quot;\n=========\n&lt;/pre&gt;&quot;;
  
      require_once('recaptchalib.php');
      $privatekey = &quot;private_key_here&quot;;
      $resp = recaptcha_check_answer ($privatekey,
      $_SERVER[&quot;REMOTE_ADDR&quot;],
      $_POST[&quot;recaptcha_challenge_field&quot;],
      $_POST[&quot;recaptcha_response_field&quot;]);
  
      if (!$resp-&gt;is_valid) {
      // What happens when the CAPTCHA was entered incorrectly die (&quot;The reCAPTCHA wasn't entered correctly. Go back and try it again.&quot;.
              &quot;(reCAPTCHA said: &quot; . $resp-&gt;error . &quot;)&quot;);
      } else {
      // Your code here to handle a successful verification
      }
  ?&gt;
  </code></pre>
  <p>I have no clue what I did wrong. Any help?</p>
  <p>P.s. Yes, I do have the recaptchalib.php in the same directory.</p>