Create drop down based on numeric value. I have a form where user specifies the number of entries, when submitted, say number=5 I need to create a new form with that many entry lines. I sort of understand what I need to do but not quite at the same time.
$numerLines = 5;
echo '<select>';
while (what goes here???) {
echo '
<input type=text name=line1>
<input type=text name=line2>
<input type=text name=line3>
<input type=text name=line4>
<input type=text name=line5>';
}
echo '</select>';