title: jquery captcha response no reaction
body: <p>Hi I have a small problem with getting back information from the response with the captcha. </p>
  
  <p>This is my "register script and this works oke.</p>
  
  <pre><code>$("#submit_button").click(function()
      {
      // refresh captcha
  
      if($("#register").valid())
      {       
  
      $.post("/js/captcha/post.php",$("#register").serialize(),function(response){
  
      if(response == 1)
              {
              alert("Yep its correct.");
              $("#register").submit();
              //$("#after_submit").html('');
              }
          else
              {
              alert("sorry not correct");         
              change_captcha();
              $("#after_submit").html('');
              }
  
              });
              // END CHECK CAPTCHA IF OKE GO TO SUBMIT
          }
      });
  </code></pre>
  
  <p>But when i call the <code>post.php</code>
  it has this information:</p>
  
  <pre><code>&lt;?php
      session_start();
  
      if(($_REQUEST['code'] == $_SESSION['random_number']) || @strtolower($_REQUEST['code']) == strtolower($_SESSION['random_number']) )
      {
          //echo 1; // submitted 
          echo " Beveiligingscode is correct";
  
          // Hier include het plaatsen van alle content in de database en dan terug en oke formulier leegmaken.
      }
      else
      {
          echo 0; // invalid code
          echo " Foute beveiligingscode";
  
      }
      ?&gt;
  </code></pre>
  
  <p>I do get back to the register script but the (response) is always 0.</p>
  
  <p>Hope someone could help.</p>
  
  <p>if you like a life demo check <a href="http://www.betav3.gitaartabs.nl/aanmelden.html" rel="nofollow">this</a>.</p>
  
  <p>(also i have a strange issue when i use the english script the <code>button_submit</code> does not work anymore).</p>