title: How to test jQuery Ajax with php?
body: <p>I tried to just send some information to a php file using Jquery Ajax. I wanted to send some info to the php file every time a click is made.</p>
  
  <pre><code>&lt;script&gt;
      $(document).ready(function() {
          $('#checkbox').click(function() {
          $.ajax({type : "POST",
              url : "test.php",
              data : "ffs=somedata&amp;ffs2=somedata2",
              succes : function() {
                  alert("something");
              } 
          });
          });
      });
  &lt;/script&gt;
  &lt;body&gt;
          &lt;input type = "checkbox" name = "checkbox" id = "checkbox"&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>The php file looks like this:</p>
  
  <pre><code>&lt;?php
  
  echo $_POST['ffs'];
  
  ?&gt;  
  </code></pre>
  
  <p>Now, I see the POST going, (using firebug). I get no errors, but nothing happens in the php file. Also success is never reached, so no alert is triggered. What should I do in the php file so that I can trigger success and also see the sent info?</p>