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] only
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 file
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.
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 generate the html page completely. if i have them
unique names, it is kind of boring when
; [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
-Original Message-
From: Xin Qi [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 1:54 PM
To: 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
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 into
7 matches
Mail list logo