> with checkboxes, the value of the checkbox is sent to the serveronly if
it's
> checked - if it's not chesked, then it's value does go to the server
And, because of that, checkBox[0] is the first box *checked*, not the first
in the html.
--
PHP General Mailing List (http://www.php.net/)
To un
Chris Boget'; PHP General
Subject: RE: [PHP] Form element names as array
with checkboxes, the value of the checkbox is sent to the serveronly if
it's
checked - if it's not chesked, then it's value does go to the server
HTH
Martin
-Original Message-
From: Chris Boget [m
General
Subject: [PHP] Form element names as array
I know you can set up some form elements as array names
so that when the form is submitted, you can access the values
of those form elements, you can iterate through the array. So
you can set up a bunch of form elements with the name
form_elements[]
I know you can set up some form elements as array names
so that when the form is submitted, you can access the values
of those form elements, you can iterate through the array. So
you can set up a bunch of form elements with the name
form_elements[]
and then when the form is submitted, you can
4 matches
Mail list logo