Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

display input text boxes equal to specified quantity

Status
Not open for further replies.

crjo

Programmer
Jul 3, 2001
15
US
I'll try to make this as clear as I can.

User enters number of guests, selects event, then preferably through an onBlur event, an equal number of input text boxes appear. On submit the guest name(s) will be inserted into a MySQL db.

<form name=&quot;guestlist&quot; action=&quot;someform.php&quot; method=&quot;post>
<table>
<tr>
<td><input type=&quot;text&quot; name=&quot;GuestNum&quot; onBlur=&quot;getNames(this.form)&quot;></td>
</tr>
<!-- repeat this section according to number of guests (GuestNum) specified -->
<tr>
<td><input type=&quot;text&quot; name=&quot;GuestName[]&quot;></td>
</tr>
<!-- end section -->
<tr>
<td><input type=&quot;submit&quot; name=&quot;subButton&quot; value=&quot;Submit&quot;></td>
</tr>
</table>
</form>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top