| 
 Posted by Dan on 12/09/06 18:32 
Shank wrote: 
> I prefer the checkbox because the user can only select one of each item and 
> it's considerably faster. When I submit the form using checboxes or text 
> boxes, there's a considerable difference. The text boxes deliver a comma 
> delimination for each occurance. The checkboxes only offer comma 
> delimination for each checkbox that is selected. At this point, I'm assuming 
> that's the difference between the two and it cannot be changed. 
 
Why don't you name the checkboxes with unique codes corresponding to 
the products they are for: 
 
<input type="checkbox" name="item001" value="1"> Item #1 
<input type="checkbox" name="item002" value="1"> Item #2 
etc. 
 
so that you get results like "item002=1" meaning that the customer is 
ordering one of item #2.  Then you program your back-end script to act 
on these field names and values. 
 
--  
Dan
 
[Back to original message] 
 |