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
]
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
; [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
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
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
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
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"]
7 matches
Mail list logo