15.
Form Submit with Popup Menus, Radio Buttons and Checkboxes.
This BuyObject is appropriate when you have an item that
- comes in multiple options and
- you wish people to be able to select one type of each option
- and select only one of another option
- and select more than one of yet another option.
You can add and/or delete popup menus, radio buttons and checkboxes.
Source Code:
<form action="../Cart/AddwOptions.php" method="get">
<!-- (C) 2001 eCatalogBuilders. All rights reserved by eCatalogBuilders. -->
<input type="hidden" name="item" value='015'>
<input type="hidden" name="product[]" value='Product Name'>
<input type="hidden" name="price" value='0.01'>
<input type="hidden" name="nontax" value="no">
<!--CustID value must be left blank-->
<input type="hidden" name="custID">
<input type="hidden" name="length" value="5">
<input type="hidden" name="width" value="1">
<input type="hidden" name="height" value="1">
<input type="hidden" name="weight" value="1">
<input type="hidden" name="quantity" value="1 ">
<!--Popups must be named product so that the information will land in the product description field in the cart.-->
<select name="product[]" size="1">
<option value="Color Unspecified" selected>Color
<option value="White">White
<option value="Beige">Beige
<option value="Blue">Blue
<option value="Puce">Puce
<option value="Pink">Pink
<option value="Rose">Rose
<option value="Teal">Teal
</select>
<select name="product[]" size="1">
<option value="Size Unspecified" selected>Size
<option value="30/30">30/30
<option value="30/32">30/32
<option value="32/32">32/32
<option value="34/32">34/32
<option value="34/34">34/34
</select><br>
<input type="radio" value="ValueA" name="product[]"> Text Here
<input type="radio" value="ValueB" name="product[]"> Text Here
<input type="radio" value="ValueC" name="product[]"> Text Here
<input type="radio" value="ValueD" name="product[]"> Text Here<br>
<input type="checkbox" value="Value1" name="product[]">Text Here
<input type="checkbox" value="Value2" name="product[]">Text Here
<input type="checkbox" value="Value3" name="product[]">Text Here
<input type="checkbox" value="Value4" name="product[]">Text Here
<input type="submit" value="Purchase" name="Submit">
</form>
-
-
-
|