Adding multiple inputs to file php form submit
<p>I have a form that looks like so:</p>

<pre><code>&lt;label for="fullpath"&gt;&lt;span class="required"&gt;*Full Path of folder to change access:&lt;/span&gt;&lt;/label&gt;
            &lt;input name="fullpath" id="it10" type="text" size="50" maxlength="50" /&gt;
            &lt;br /&gt;
            &lt;small&gt;Example: g:\A\Folder or j:\Your\Folder&lt;/small&gt;&lt;br /&gt;
            &lt;div class="bgdiff"&gt;
              &lt;label for="userpermissiongroup"&gt;User Permission Group to be changed:&lt;/label&gt;
              &lt;input name="userpermissiongroup" type="text" id="it11" size="50" maxlength="50" /&gt;
              &lt;small&gt;If Known...&lt;/small&gt;&lt;/div&gt;
            &lt;br /&gt;
            &lt;label for="addreadaccess"&gt;Additional users requiring read access:&lt;/label&gt;
            &lt;input name="addreadaccess" type="text" id="it12" size="15" maxlength="15" /&gt;
            &lt;br /&gt;
            &lt;small&gt;AD Username&lt;/small&gt;&lt;br /&gt;
            &lt;div class="bgdiff"&gt;
              &lt;label for="addauthoraccess"&gt;Additional users requiring author access:&lt;/label&gt;
              &lt;input name="addauthoraccess" type="text" id="it13" size="12" maxlength="12" /&gt;
              &lt;br /&gt;
              &lt;small&gt;AD Username&lt;/small&gt;&lt;/div&gt;
            &lt;br /&gt;
            &lt;label for="removeaccess"&gt;Users to be removed from access:&lt;/label&gt;
            &lt;input name="removeaccess" type="text" id="it14" size="12" maxlength="12" /&gt;
            &lt;br /&gt;
            &lt;small&gt;AD Username&lt;/small&gt;&lt;br /&gt;
            &lt;div class="bgdiff"&gt;
              &lt;label for="supervisor"&gt;&lt;span class="required"&gt;*Data Steward, Program Manager, Project Lead, or Supervisor who can authorize access changes:&lt;/span&gt;&lt;/label&gt;
              &lt;input name="supervisor" type="text" id="it15" size="30" maxlength="30" /&gt;
              &lt;br /&gt;
              &lt;small&gt;AD Username&lt;/small&gt;&lt;/div&gt;
            &lt;br/&gt;
            &lt;label for="phoneapprover"&gt;&lt;span class="required"&gt;*Phone number of approving official: &lt;/span&gt;&lt;/label&gt;
            &lt;input name="phoneapprover" type="text" id="it16" size="30" maxlength="30" /&gt;
            &lt;br /&gt;
            &lt;small&gt;999-999-9999&lt;/small&gt;&lt;br /&gt;
          &lt;/fieldset&gt;
        &lt;/div&gt;
</code></pre>

<p>I would like to give users the option to add all of this info to this form more than 1x before submitting. (say 10x max) I have run a couple ideas through my head. 1 is using Javascript to create the new fields and then parse them with my php script somehow. 2 is put say 10 code snips just like the form above in the code and hide them until the user clicks ADD ANOTHER.</p>

<p>Each input needs to be unique as I am submitting this info thought a simple $_REQUEST php script. I understand how to do this with 1 input and a for each loop, but am not sure how to make it work with such a large amount of inputs, labels, etc... </p>

<pre><code>&lt;?php
foreach($_POST['newdata'] as $value) {
echo "$value &lt;br /&gt;";
}
?&gt;
</code></pre>

<p>Anyone have some suggestions on the best way to go about this? I am not sure adding his form via JS is the best idea, so just displaying the new info from a hidden div seems quicker and easier... </p>
