title: Can I interpret http_build_query($_POST) so I can save it to the database in CakePHP?
body: <p>I am using CakePhp and jQuery in my application of FormBuilder.
   I am having form as like</p>
  
  <pre><code>&lt;form action="/cake_1.2.1.8004/index.php/results/submit1" method="post"
                                                            id="ResultSubmit1Form"&gt;
      &lt;fieldset style="display: none;"&gt;
          &lt;input type="hidden" value="POST" name="_method"/&gt;     
      &lt;/fieldset&gt;
  
      &lt;div class="input text"&gt;
          &lt;label for="1"&gt;Doj&lt;/label&gt;
          &lt;input type="text" value="" style="width: 300px;" id="1" name="Doj"/&gt;
      &lt;/div&gt;
  
      &lt;div class="input text"&gt;
          &lt;label for="2"&gt;Name&lt;/label&gt;
          &lt;input type="text" value="" style="width: 300px;" id="2" name="Name"/&gt;
      &lt;/div&gt;
      &lt;div class="input textarea"&gt;
          &lt;label for="3"&gt;Address&lt;/label&gt;
          &lt;textarea style="height: 300px;" id="3" rows="6" cols="30" name="Address"/&gt;
      &lt;/div&gt;
      &lt;div class="input text"&gt;
          &lt;label for="4"&gt;Age&lt;/label&gt;
          &lt;input type="text" value="" style="width: 200px;" id="4" name="Age"/&gt;
      &lt;/div&gt;
      &lt;br/&gt;&lt;br/&gt;
      &lt;div class="submit"&gt;
          &lt;input type="submit" value="submit"/&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I want to get all the values entered in the form.</p>
  
  <p>Using jQuery Form plugin i have used the following code to retrieve the values like</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function(){
          $("#submit").eq(0).click(function (){
  
              var serializedFormStr = $("#ResultSubmit1Form :input[value]").serialize();  
              alert(serializedFormStr);
              $.ajax({
                  type: "POST",
                  url: "http://localhost/cake_1.2.1.8004/index.php/results/submit1",
                  data: serializedFormStr,
                  success: function(msg){
                      alert( "Data Saved: " + msg);
                  }//success
              });//ajax
          });
      });//ready
  &lt;/script&gt;   
  </code></pre>
  
  <p>The <code>alert(serializedFormStr);</code> shows as </p>
  
  <pre><code>        _method=POST&amp;Doj=07%2F09%2F2009&amp;Name=aruna&amp;Address=xyz&amp;Age=22 
  </code></pre>
  
  <p>same I retrieved in my Cakephp controller as </p>
  
  <pre><code>   function submit1()
     {
         echo "In controller  ".http_build_query($_POST);//echoes correctly
     }
  </code></pre>
  
  <p>How can I get the individual datas from this query string so that I can save it my database.
  Please suggest me..</p>