Re: [PHP] how can php get the values of a group of checkbox

2002-11-21 Thread Jason Wong
On Friday 22 November 2002 08:35, Xin Qi wrote: > RE: [PHP] how can php get the values of a group of checkboxbut the question > is how to determine the times of loop? the upper bound is hard to find. and > the loop does cost time though it is not so much. If you have made the checkbox values int

Re: [PHP] how can php get the values of a group of checkbox

2002-11-21 Thread Xin Qi
] Sent: Thursday, November 21, 2002 7:18 PM Subject: RE: [PHP] how can php get the values of a group of checkbox Use an array (checkbox[1], checkbox[2]). Then use a loop to pull get the data after posting. If you expect only one choice, use a radio button. Robbert van Andel

RE: [PHP] how can php get the values of a group of checkbox

2002-11-21 Thread Van Andel, Robert
; [EMAIL PROTECTED] Subject: Re: [PHP] how can php get the values of a group of checkbox RE: [PHP] how can php get the values of a group of checkboxthank you, but what if all the checkboxes are generated dynamicly? I mean, I do not know how many checkboxes where will be until the php script

Re: [PHP] how can php get the values of a group of checkbox

2002-11-21 Thread Xin Qi
php get the values of a group of checkbox Check boxes should not be given the same name. Radio buttons should to denote a grouping. In other words, if you want to have a bunch of radio buttons indicating a choice between items (say bananas, oranges, and apples), you would name them the same

RE: [PHP] how can php get the values of a group of checkbox

2002-11-21 Thread Van Andel, Robert
Check boxes should not be given the same name. Radio buttons should to denote a grouping. In other words, if you want to have a bunch of radio buttons indicating a choice between items (say bananas, oranges, and apples), you would name them the same thing and give them each a different value. Ch

Re: [PHP] how can php get the values of a group of checkbox

2002-11-21 Thread Adam Williams
user name=cb[] and PHP will automatically make the array. then call it with $_GET["cb"][#] Adam On Thu, 21 Nov 2002, Xin Qi wrote: > hi there, > > if i have a group of checkboxes, and they have the SAME name, when they are > submited into a php script, how can this php f

Re: [PHP] how can php get the values of a group of checkbox

2002-11-21 Thread Ernest E Vogelsinger
At 20:14 21.11.2002, Xin Qi said: [snip] >if i have a group of checkboxes, and they have the SAME name, when they are >submited into a php script, how can this php file get the value of each >checkbox? > >since they have the same name, $_GET["checkbox_name"]