can you submit a form with an array of text input?
<p>i am dynamically building a page.  This page needs to read information from input tags but it is dynamic.  Should i set up stuff to be an array since i am looking at</p>

<p>I want to preserve datasets.</p>

<pre><code>&lt;script&gt;
   function adjustPilots(){
var pilots = $("#numPilots").val();
var info = '&lt;td&gt;&lt;table&gt;'+
    '&lt;tr&gt;&lt;td&gt;Minumum Collateral&lt;/td&gt;&lt;td colspan="2"&gt;&lt;input type = "text" size = "10" maxLength = "6" /&gt; to &lt;input type = "text" size = "10" maxLength = "6" /&gt;&lt;/td&gt;&lt;/tr&gt;'+
    '&lt;tr&gt;&lt;td&gt;Reward&lt;/td&gt;&lt;td colspan="2"&gt;&lt;input type = "text" size = "10" maxLength = "6" /&gt; to &lt;input type = "text" size = "10" maxLength = "6" /&gt;&lt;/td&gt;&lt;/tr&gt;'+
    '&lt;tr&gt;&lt;td&gt;Volume&lt;/td&gt;&lt;td colspan="2"&gt;&lt;input type = "text" size = "10" maxLength = "7" /&gt; to &lt;input type = "text" size = "10" maxLength = "7" /&gt;&lt;/td&gt;&lt;/tr&gt;'+
    '&lt;tr&gt;&lt;td&gt;Start: &lt;/td&gt;&lt;td&gt;&lt;input type = "text" name = "s" id = "s" class = "s" value autocomplete = "off"&gt;&lt;/td&gt;&lt;/tr&gt;'+
    '&lt;tr&gt;&lt;td&gt;End: &lt;/td&gt;&lt;td&gt;&lt;input type = "text" name = "e" id = "e" class = "e" value autocomplete = "off"&gt;&lt;/td&gt;&lt;/tr&gt;'+
    '&lt;/table&gt;&lt;/td&gt;';


for(var i = 0; i &lt; Number(pilots); i++){
    $("#pilotrow").append(info);
}
}
&lt;/script&gt;
&lt;body&gt;
&lt;form&gt;
&lt;table&gt;
&lt;tr&gt;&lt;td&gt;Number of Pilots&lt;/td&gt;&lt;td colspan="2"&gt;&lt;input id = "numPilots" type = "text" size="3" maxLength="3" onchange = 'adjustPilots()' /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr id = "pilotrow"&gt;&lt;/tr&gt;

&lt;tr&gt;&lt;td&gt;&lt;input type = "submit" name = "submit"&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;/form&gt;
&lt;/body&gt;
</code></pre>

<p>An option i was thinking was to just not use a form, and build it with javascript.  Then make a JSON object and use AJAX to send it to the server.  Is that a solid way of doing it, or is there a better idea?</p>
