Re: [PHP] Check box with same name

2002-11-01 Thread John Nichel
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

Re: [PHP] Check box with same name

2002-11-01 Thread Philip Olson
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

[PHP] Check box with same name

2002-11-01 Thread ppf
Hi all: I am having a problem in accessing form data from multiple check box of same name with different values, like this Where