You are here: Re: PLEASE HELP - How to find number of check boxes created dynamically « PHP Programming Language « IT news, forums, messages
Re: PLEASE HELP - How to find number of check boxes created dynamically

Posted by Ninad on 08/28/06 07:03

Hi
you can create a array of check boxes by adding [] after the
name in
e. g. name="somename[]"
and create as many you want with same name and whenever you submit the
form you will get the check box values in array and just treat the
individual element of array as a seperete check box
e. g. somename[0], somename[1], etc

mail me if you have any problem


Ninad

cpptutor2000@yahoo.com wrote:
> Could some PHP guru please help me? I have very standard PHP - MySQL
> application that reads in some data from a table and for each row, puts
> a check box at the start of the row. Now the check boxes are variable
> in number, depending only on the number of current records in the
> database table. My question is: how do I count the number of check
> boxes rendered at any one time. I tried having a global variable and
> incrementing it each time a row is rendered on screen, but it does not
> work. Any help would be greatly appreciated.

 

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

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