have to do a questionaire thingy, going to do a bunch of checkboxes beside each question then have a button to sumbit when all is done. Is there a quick way to round up the results i.e whether a box has been checked or not after the submit button is used, about 40 questions?

something like.

for each checkbox
if checkbox = checked then
question number x = true
and write that number to a file or so.

thanks