You are here: Re: checkbox vs text box « HTML « IT news, forums, messages
Re: checkbox vs text box

Posted by Andy Dingley on 12/13/06 21:45

Shank wrote:

> <input name="qty" type="text" value="0">

> However, if I use the following checkbox code, and assuming the user checks
> 4 products half way down the page, he will get the first 4 products in the
> recordset. If he clicks 1 checkbox, he will always get the first product,
> not the product he chose.

As a total guess, you appear to be re-using the control name "qty" for
each different product. The web server code can't tell them apart and
its fall-back behaviour appears to be to assume that it's the first
products in order.

To know any more we'd have to see all of your code, including the
server-side stuff.

 

Navigation:

[Reply to this 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

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