Take a look at the following script. You can easily adapt it to what you want. When forming the parameters, just use a for loop to read through the input's values.

Code:
<form action="" method="post" enctype="multipart/form-data" target="theFrame">
  <input type="hidden" name="upload">
  <table cellpadding=0 cellspacing=3 border=0 id="theTable">
    <tr><td><input type="text" name="text1"></td></tr>
  </table>
  <input type="submit" value="Submit">
</form>

<script type="text/javascript">
  var inputs = 2;
  function addCell(){
    var theTable = document.getElementById("theTable");
    var newRow = document.createElement("tr")
    var newTd = document.createElement("td")
    var newInput = document.createElement("input");
    newInput.setAttribute("type", "text");
    newInput.setAttribute("name", "text" + inputs);
    newTd.appendChild(newInput);
    newRow.appendChild(newTd);
    theTable.appendChild(newRow);
    inputs++;
  }

  for(i=0;i<=100;i++){
    addCell();
  }
</script>