well if you have a checkbox that looked like this
<input type="checkbox" name="work[]" value="bla1"><br>
<input type="checkbox" name="work[]" value="bla2"><br>
<input type="checkbox" name="work[]" value="bla3"><br>
You would have access to the array variable $work, and could access all the elements using a foreach loop. And for coding examples, if all three were checked, and you wanted to access them individually, you'd use
$POST['work']['0']
$POST['work']['1']
$_POST['work']['2']
and if only 2 were checked, you would use
$POST['work']['0']
$POST['work']['1']
the foreach loop is definately the way to go, but hopefully the examples cleared up any confusion.
BTW, if you're using a forloop, does it look like this:
for($y=0; $y<count($some_array); $i++) {
echo "<input type='checkbox' name='work[" . $y . "]' value='" . $some_var . "'>";
}
If so, by giving it a name such as work['0'] and work ['1'] as the for loop goes on, then you'd have a 3 dimensional array that would need to be accessed using
$_POST['work']['0']['0']
(i believe)
Cgraz