Change box names to chk[] and assign the id as the value, so for example: <INPUT TYPE="checkbox" NAME="chk[]" VALUE="56">
to check which boxes have been checked simply traverse through the chk[] array like this: $chk_array = $_POST['chk']; for($chk_array as $chk_key => $chk_value) { print 'Checkbox Id:'. $chk_key . ' Value:'. $chk_value .'is checked'; } I have not tested this, but it should work. -----Original Message----- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 10:07 PM To: [EMAIL PROTECTED] Subject: [PHP] determine how many checkboxes are selected. Hi I have a tabel that gets populated dynamically from a DB query. Each row is a seperate record and they all have a checkbox. I want to put a button/image @ after the table and when it is click ed to determine which checkboxes have beeen selected. I also name the checkboxes dynamically with chk being the prefix and the record ID the suffix eg record 56: chk56 would be the name of that particular checkbox. If anyone could help with this design issue I would appreciate it! Or any advice will be great as well. angelo TIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php