RE: [PHP] determine how many checkboxes are selected.

2003-08-26 Thread Ralph Guzman
Change box names to chk[] and assign the id as the value, so for example: 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

Re: [PHP] determine how many checkboxes are selected.

2003-08-26 Thread murugesan
First count the number of entries($count) to be displayed in the page. Accordingly assign the names for($i=0;$i< $count;$i++) { $chkval="chkv".$i; $chkfun="chkf".$i; echo ""; echo " "; //display record $i echo " function $chkfun() { if(document.forms[0].$chkval.value=='off')