title: Filter results with Jquery
body: <p>I've created a search form for a script in php. Basicaly this form have some checkboxes and a submit button. Each checkbox is a category, if I check one or more checkboxes the result is filtered by thoose categories.</p>
  
  <p>Here is the html code:</p>
  
  <pre><code>&lt;?php
  if ($_POST['do_search'] == 'true') {
  $results = 'Do the query and store results in the $results var';
  }
  ?&gt;
      &lt;form method="post" action="search.php" id="search"&gt;
       &lt;input type="checkbox" name="categories[]" id="categories[]" value="1"&gt;Category 1
       &lt;input type="checkbox" name="categories[]" id="categories[]" value="2"&gt;Category 2
       &lt;input type="checkbox" name="categories[]" id="categories[]" value="3"&gt;Category 3
       &lt;input type="submit" name="submit"&gt;
       &lt;input type="hidden" id="do_search" value="true"&gt;
      &lt;/form&gt;
      &lt;div id="search_results"&gt;
  &lt;?php echo $results; ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I'm trying to get the result inline with ajax, for most parts of my script I use JQuery. Anyone can help me to figure out how to pass the $_POST data in realtime through ajax, without reload the page?</p>
  
  <p>p.s. I'm sorry for my poor english, I hope I was clear enough :|</p>