You could try using a foreach loop to cycle through each $_POST...if you begin the name of your checkbox elements with something like 'chk_', it would be easy to filter them out from all the other form elements by using a substring search... <input type="checkbox" value="checked" name=chk_nameHere></input>
foreach ($_POST as $key => $value)
if(substr($key, 0, 4) == 'chk_')
//only checked checkboxes will post...
echo $key.' was checked!';