title: Append new elements in form and post it values in PHP and save it in database
body: <p>Basically what I'm trying to do is to DYNAMICALLY APPEND elements in a form and save their values to MySQL using PHP so far I've started adding but I don't know how to post their values.. Here is what I've done so far:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript" src="jquery-1.3.2.min.js" &gt;&lt;/script&gt;
  &lt;script&gt; 
   $('document').ready(function(){ 
  
  
   $('#save').live('click',function(e){ 
     /*
     this should be the function that gets and post all elements in php 
     */  
     //maybe the use of $.post or .load() or ajax
  
  }); 
  
  $('#add').click(function(){
  $("&lt;br&gt;&lt;input type='text' class='do'name='do'&gt;").appendTo('form');
  
  });
  
  }); 
  
   &lt;/script&gt;&lt;/head&gt;
  &lt;body&gt;
  &lt;form&gt; //this was the form that im appending
  &lt;input type='text' class='do' name="do"&gt;&lt;br&gt; 
  &lt;input type='text' class='do' name="do"&gt;&lt;br&gt; 
  &lt;input type='text' class='do' name="do"&gt;&lt;br&gt; 
  
  &lt;/form&gt;
  
  &lt;input type='button' id='add' value='[+]'&gt;
  &lt;input type='button' id='save' value='go2'&gt;&lt;br&gt;
  
  
  &lt;div id='res'&gt;&lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and i want to save all values in database using php so just for example here is the php</p>
  
  <pre><code>&lt;?php
  //
  mysql_query("INSERT &lt;blablabla HERE&gt;");
  
  ?&gt;
  </code></pre>
  
  <p>please help me with this stuff... thanks..</p>