title: Parse a jquery serialize string in PHP
body: <p>Before people jump all over me, I've seen this thread: <a href="https://stackoverflow.com/questions/1792603/how-do-i-php-unserialize-a-jquery-serialized-form">How do I PHP-unserialize a jQuery-serialized form?</a> </p>
  
  <p>My question is very similar, yet my data is much different. I'm using a AJAX call to do the post, the data posts just fine (jQuery is 1.7). The form &amp; AJAX are dynamically loaded in when a user clicks a few links and drills down to this form &amp; ajax script. </p>
  
  <p>The AJAX looks like: (BTW, I know you're supposed to us .on() but I can't seem to get that to work like I can .live() )</p>
  
  <pre><code>$('#ajaxCaptionForm').live('submit', function(e){
      e.preventDefault(); 
      $.ajax({
          'type':'POST',
          'data':{formData: $('#ajaxCaptionForm').serialize()},
          'success':function(){
              parent.$.fancybox.close();
          }
      });   
  }); // closing form submit 
  </code></pre>
  
  <p>The form looks like: </p>
  
  <pre><code>&lt;form method="Post" action="localhost/controller" id="ajaxCaptionForm" name="ajaxCaptionForm"&gt;
      &lt;label for="Caption"&gt;Caption&lt;/label&gt;&lt;input type="text" id="Caption" name="Caption" value="Leaf lesions."&gt;
      &lt;label for="Keywords"&gt;Keywords&lt;/label&gt;
      &lt;p&gt;Please seperate keywords by a comma
      &lt;input type="text" id="Keywords" name="Keywords" value=""&gt;&lt;/p&gt;
      &lt;input type="hidden" id="imageID" name="imageID" value="87595"&gt;
      &lt;input type="submit" value="Update Image" name="yt3" clicked="true"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>The serialized data looks like: (according to firebug)</p>
  
  <pre><code>formData=Caption%3DFruit%2Blesions.%26Keywords%3D%26imageID%3D87592
  </code></pre>
  
  <p>When I echo out a response, I get this:</p>
  
  <pre><code>"Caption=Leaf+symptoms+of+++CCDV.&amp;Keywords=&amp;imageID=87655"
  </code></pre>
  
  <p>My problems are:</p>
  
  <ol>
  <li>The keywords field is empty, even when I put in content</li>
  <li>The caption field doesn't change on post when I change content. </li>
  <li><p>How do i access each of the variables? Caption, Keywords and Images. $_POST does not work nor:</p>
  
  <p>Yii::app()->request->getParam('imageID')</p></li>
  </ol>