In the first page:
Then you have the checkboxes be the same name as each other, but different values.
In the second page:
Specify that the variable is a multiple in the ad_page_contract.
Then foreach var multiple_variable_name {
db_dml statement_name "insert into foo ..."
}