If yo name the checkbox something like:
Code:
<input type="checkbox" name="mycheckbox[]" value="apples">
<input type="checkbox" name="mycheckbox[]" value="orranges">
You'll be able to access it through PHP as an array like:
PHP Code:
$checked = $_POST['mycheckbox'];
foreach($checked as $check)
// do stuff with $check
However I havn't quite figured out, how that namingscheme would work out with your checkAll() javascript...