I have a form which ask the user the quantity of equipment that needs to be scanned. A loop begins and creates input boxes to the exact number the user enters. Is there a way to name the boxes as they are being created during the loop so that i can in turn upload the information to my database?
Here is what I have:
<%For x=1 to (quantity)%>
<tr>
<TD><INPUT TYPE="text" ONKEYPRESS="return dotab(this, event)" name="Test"+<%=response.write(x)%>>
</TD>
</tr>
<%Next%>
it doesnt give any errors, but it still doesnt work.
Here is what I have:
<%For x=1 to (quantity)%>
<tr>
<TD><INPUT TYPE="text" ONKEYPRESS="return dotab(this, event)" name="Test"+<%=response.write(x)%>>
</TD>
</tr>
<%Next%>
it doesnt give any errors, but it still doesnt work.