| 
	
 | 
 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] 
 |