PHP - Restart insertion with (#) rows (where the user selects a # from a dropdown list)
<p>I would like to add a feature to my website that I have seen within phpMyAdmin. The feature can be seen on phpMyAdmin's Insert tab: at the very bottom of the Insert tab page, there is a line that says, "Restart insertion with (#) rows". Below is the selection source. I would like to add a similar dropdown list to my page that has a single group of inputs. </p>

<p>For example, when a user selects "Restart insertion with 15 rows", the page will render 15 groups of inputs to be filled out. How could I do this within my PHP/mySQL page? Could someone provide a working sample that changes the number of groups of inputs based upon the number selected from the dropdown list? I am hoping to accomplish this without Javascript or Jquery.</p>

<pre><code>&lt;form method="post" action="tbl_replace.php" name="restartForm"&gt;
&lt;input name="db" value="databasename" type="hidden"&gt;
&lt;input name="table" value="MyTable" type="hidden"&gt;
&lt;input name="token" value="somerandomnumber" type="hidden"&gt;
&lt;input name="goto" value="tbl_structure.php" type="hidden"&gt;
&lt;input name="err_url" value="tbl_structure.php?goto=tbl_structure.php&amp;amp;amp;db=databasename&amp;amp;amp;table=MyTable&amp;amp;amp;server=1&amp;amp;amp;token=somerandomnumber" type="hidden"&gt;
&lt;input name="sql_query" value="" type="hidden"&gt;

Restart insertion with &lt;select name="insert_rows" id="insert_rows" onchange="this.form.submit();"&gt;
&lt;option value="1"&gt;1&lt;/option&gt;
&lt;option value="2"&gt;2&lt;/option&gt;
&lt;option value="5"&gt;5&lt;/option&gt;
&lt;option value="10"&gt;10&lt;/option&gt;
&lt;option value="15"&gt;15&lt;/option&gt;
&lt;option value="20"&gt;20&lt;/option&gt;
&lt;option value="30"&gt;30&lt;/option&gt;
&lt;option value="40" selected="selected"&gt;40&lt;/option&gt;
&lt;/select&gt;
 rows&lt;noscript&gt;&lt;input type="submit" value="Go" /&gt;&lt;/noscript&gt;
&lt;/form&gt;
</code></pre>
