HMTL tip coming up:
All the checkboxes in the form must have different names. If they have the same name you will only get one value = 'on', even if all boxes are checked.
Update: I stand corrected. The broken solution presented by Fastolfe is what I have had to use at work. I will have to try ColtsFoots solution next time around.