RE: [PHP-WIN] dynamic checkboxes submit..help!
| From: | Sandeep Murphy | Date: | Mon, 18 Feb 2002 14:33:49 +0000 |
| Subject: | RE: [PHP-WIN] dynamic checkboxes submit..help! | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-12124@lists.php.net to get a copy of this message | ||
ok...
I am creating a tree of checkboxes from the information in the database..
like for everyname
in the database I create a series of (3)checkboxes (update, view and priv)..
so when I do a submit i need to send all the values for every checkbox
clicked for any number of users...
My problem is that I am not sure how I can submit the values of all
checkboxes as they keep varying in number...
Hope my problem is more clearer now..
gratefull for suggestions...
sands
-----Original Message-----
From: Mike Flynn [mailto:mike@mikeflynn.net]
Sent: segunda-feira, 18 de Fevereiro de 2002 13:43
To: Sandeep Murphy
Cc: php-windows@lists.php.net
Subject: Re: [PHP-WIN] dynamic checkboxes submit..help!
You have to be a little more clear. What do you mean by "dynamically
generated" and "tree"? If the checkboxes are created dynamically, what
naming convention are using to give the checkboxes names? Set their
value=".." to whatever you want, and use some convention for their
names. Then after submitting, use that same naming convention to look at
all the names and see which ones have been set, and those are the ones that
are checked. The "values of all the checkboxes which are checked" are
always submitted. That's how forms work..
-Mike
At 01:23 PM 2/18/2002 +0000, you wrote:
>Hi,
>
>I have a dynamically generated tree of checkboxes which I need to submit to
>a PHP page for performing a search..
>
>Can anyone pl suggest as to how I can submit the values of all the
>checkboxes which are checked??
>
>TIA,
>
>sands