If they really are called checkbox1, checkbox2 etc... you can.
I've got a page with dynamically generated checkboxes on, named game[#number], ie game1, game2, game3 etc...
I check it like the below...
for ($i=0;$i<=$results-1;$i++) {
if ("${"game".$i}" != "") {$selected = 'Y';}
}
if ($selected != 'Y') {echo "You must select at least one checkbox"; exit;}
So as soon as one is selected, $selected is set to Y, and it runs fine, if none are selected, $selected isn't set to Y, and it gives an error and exits.
Hope that helps.