Do your checkboxes all have the same name, but with different values?
If so, you can figure out which ones were selected by doing a Request.Form("checkbox_name"). This would return something like:
value1,value2,value3,value4
All you would have to do would be to write that value into the <input type="hidden"> tag.
For example: