title: Split POST array into multiple variables
body: <p>I'm coding a form right now using jQuery .post and the file responsible for processing has the code:</p>
  
  <pre><code>print_r($_POST);
  </code></pre>
  
  <p>Which returns the following dynamic output:</p>
  
  <pre><code>Array ( [data] =&gt; capacity=50-1000+people&amp;bookingdate=17%2F04%2F2012&amp;grade=1+star )
  </code></pre>
  
  <p>I am trying to split up this array into three variables namely <strong>capacity</strong>, <strong>booking date</strong> and <strong>grade</strong> but don't really know how to. Any idea how? I've tried using <strong>echo $_POST["capacity"];</strong> but it doesn't work.</p>
  
  <p>Thanks in advance!</p>
  
  <p><strong>Edit</strong></p>
  
  <p>This is the jQuery I'm using:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(document).ready(function() {
      $("#postData").click(function() {
          $("#last-step").hide(600);
  
  
         $.post('resources/process2.php', { data: $("#task5_booking").serialize() }, function(data) {
              $("#result").html(data);
        });
  
  
          return false;
      });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>which is working with the following form:</p>
  
  <p><a href="http://jsfiddle.net/xSkgH/93/" rel="nofollow">http://jsfiddle.net/xSkgH/93/</a></p>