title: Using jQuery to POST a Symfony form
body: <p>I am using jQuery in conjunction with Symfony 1.3.2.</p>
  
  <p>I have registered the form's submit button click event with jQuery, so that jQuery POSTs to the correct action at the server.</p>
  
  <p>My code looks like this:</p>
  
  <pre><code>$(document).ready(function(){
    $('#form_btn').click(function(){
       $.ajax( {'type': 'POST', 'url': '/form_handler.php' });
    });
  });
  </code></pre>
  
  <p>However (perhaps unsurprisingly - since I did not send any data), at the server end, there are no POST variables and the form fields are not available.</p>
  
  <p>For example:</p>
  
  <pre><code>$request-&gt;getParameter($this-&gt;form-&gt;getName());
  </code></pre>
  
  <p>returns null.</p>
  
  <p>Does anyone know how I can POST a Symfony form using jQuery? </p>
  
  <p><strong>[Edit]</strong></p>
  
  <p>For those who may not be familiar with Symfony, what I am asking here is how to post form values using jQuery.</p>