Opinion Needed for Dynamic Form

Alright, so I've got this dynamic form. My problem is.. the name could be anything between "1" to "100000" depending on what the output of a script is and which parts of the output the user chooses to select. What would you do to get all of the values from the form?

Update: Also, assume there could be 1,000 to 2,000 different checkboxes.