Try an array. In OpenACS4, you can use this on the form:
1002 <input type=checkbox name=item.1002 value=1> 1005 <input type=checkbox name=item.1005 value=1>
Then on the form processing page, using ad_page_contract:
ad_page_contract
ad_page_contract { } { item:array }