I think this should work, nont-test though.
In your form have the variable names setup like:
icon 1
<input type="check" name="iconvotes[1][]">1
<input type="check" name="iconvotes[2][]">2
<input type="check" name="iconvotes[3][]">3
<input type="check" name="iconvotes[4][]">4
<input type="check" name="iconvotes[5][]">5
When the form is posted, that should give you an array
$_POST['iconvotes']
Which only holds the checked boxes.
$voted = $_POST['iconvotes'];
$tally = array();
for($i = 0; $i,$number_of_icons; $i++)
{
$tally[$i+1] = $voted[1][$i] +$voted[2][$i] +$voted[3][$i] +$voted[4][$i] +$voted[5][$i];
}
which should give you a total for each icon. This is not completely correct, as you should really check whether a value is present, so, you should really add something like this for each vote option:
if(! isset($voted[1][$i]))
{
$voted[1][$i] = 0;
}