unable to post data in dynamic form
<p>I have created a form with dynamic field. but i m getting confused that how should i post data into database. because there would be different field according to different users.
here is the basic code with one dynamic field</p>

<pre><code>function add2(type) {
     var element = document.createElement("textArea");
     var label=prompt("Enter the name for lable","label");
     document.getElementById('raj').innerHTML=document.getElementById('raj').innerHTML+label;
     element.setAttribute("type", type);

     element.setAttribute("name", type);
     var col=prompt('Enter the no of columns');
     element.setAttribute("cols",col);
     var row=prompt('Enter the no of rows');
     element.setAttribute("rows",row);

     var rohit = document.getElementById("raj");
    rohit.appendChild(element);
    document.getElementById('raj').innerHTML=document.getElementById('raj').innerHTML+"&lt;br/&gt;";

}
</code></pre>

<p>here is the calling of this function.</p>

<pre><code>&lt;input type="button" value="Text Area" onclick="add2('textarea')"&gt;&lt;br/&gt;
&lt;/div&gt;

&lt;div id="content" style="height:200px;width:400px;float:left;"&gt;
&lt;form action="#" method="post"&gt;
&lt;span id="raj"&gt;&amp;nbsp&lt;/span&gt;
&lt;input type="submit" value="submit"&gt;&lt;/div&gt;
</code></pre>

<p>help me guys what should i do to store the dynamic elements into database
and what fields should i put into database</p>
