Add square brackets to the end of the name of each check box, ie...
And on the page you submit the form too, you will be able to access this
as an array...
$_POST['searchStr'] or $_GET['searchStr'], depending on the method the
form was posted by.
ppf wrote:
Hi all:
I am having a problem in
Hello,
Use an array:
Note:
Only checked checkboxes are passed.
Access:
print $_REQUEST['foo'][0]; // the first one
print $_REQUEST['foo'][1]; // the second
You can use named indices too:
print $_REQUEST['foo']['bar'];
Mix and match, have fun.
Regards,
Philip
--
PHP Gen
Hi all:
I am having a problem in accessing form data from
multiple check box
of same name with different values, like this
Where
3 matches
Mail list logo