how to change from text input to select drop down
I can't get this to work. I want to change the standard quantity text input box to a drop down menu to restrict the number of items the user can select, but when I change it the "add to cart button" does nothing... help!
original code:
<input type="hidden" name="proResCart_1_ID_Add" value="<?php echo $row_rsItems["ItemID"]; ?>" >
<input type="text" name="proResCart_1_Quantity_Add" value="1" size="4" >
<input type="image" src="WA_eCart/Images/Pacifica/Btn1_EN_addtocart.gif" border="0" class="eC_ImageButton" value="Add to Cart" name="proResCart_1_ATC">
my new but not working attempt:
<input type="hidden" name="proResCart_1_ID_Add" value="<?php echo $row_rsItems["ItemID"]; ?>" >
<select name="quantity">
<option name="ProResCart_1_Quantity_Add"value="1"selected="selected">1</option>
<option name="ProResCart_1_Quantity_Add"value="2">2</option>
<option name="ProResCart_1_Quantity_Add"value="3">3</option>
</select>
<input type="image" src="WA_eCart/Images/Pacifica/Btn1_EN_addtocart.gif" border="0" class="eC_ImageButton" value="Add to Cart" name="proResCart_1_ATC">