Reply to Re: checkbox vs text box

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация