hello every body
i have a form that will have multiple check boxes on it . and i have 20 machinery for sale. thereform i have 20 checkboxes in my form.
all the checkboxes have different value but checkboxes name will be same.
my requirement is that when a customer want to purchase 1 or 2 or 3 or 4
machinery from out of 20 machinery.now custmer click on checkboxes if a custmer click 10 checkbox or want to purchase 10 machinery then all 10 machinery submit in database.i think for this purpose i need loop. may be for loop, while loop.
how i can do this (code in item.asp)
<TR>
<TD>Product Name</TD>
<TD>
<input type="checkbox" name="givenname" value="vacuum">
</TD>
</TR>
<TR>
<TD>Product Name</TD>
<TD>
<input type="checkbox" name="givenname" value="sandbox">
</TD>
</TR>
(code in additem.asp)
rsUsers("givenname") = Request.Form("givenname")