yep way off topic... lets see if I can confuse you on how I do it:
for 10 boxes
here's the javascript function
function checkAll() {
for (var j = 1; j <= 10; j++) {
box = eval("document.form.grp_id" + j);
if (box.checked == false) box.checked = true;
}
}
an example of check box:
<input name="grp_id[]" type="checkbox" id="grp_id3" value="3" '.$checkgrp3.'>
so for each of the check boxes give them an id number
now $checkgrp3 would come out of the database (inside the while loop)
and this is in the while loop:
$temp = 'checkgrp'.$GRP_ID;
$$temp = 'checked';
you'll need a link to call all <a href="javascript:checkAll()">check all</a>
heres some javascript examples:
http://javascript.internet.com/buttons/check-all.html
http://javascript.internet.com/forms/checkbox-changer.html
KidGeek