|
I'm making an ordering form for a take away buffet resturant.
The customers can choose menu size (small, medium, large) and for how many people the order is.
I already have a shopping cart script which I have modified and am happy with it.
So there are actually 3 items to order (small, medium and large), but there will only be 1 field for entering quantety, and the item will change according to which radio button is checked
So if radiobutton1 is checked I want the the form to submit a textfield with the value X and name A. If radiobutton2 is checked I want the form to submit a text field with the value X and name B.
The php script i use, uses the form name to recognize which item has been ordered.
Istead of this:
Small [ 0 ] (name=A)
Medium [ 5 ] (name=B)
Large [ 0 ] (name=C)
I need this:
Qty [ 5 ]
Size: oSmall ĪMedium oLarge
I cant seem to find a good solution to this.
|