This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
For combobox, you can set the name, id attribute values as "someconstant"+id_from_db.
For checkbox, you can name as same for all checkboxes and set value attribute as id_from_dn. So you can get the selected checkbox in the "Array" form, which will have all the selected checkboxes values (ie.. ids_from_db).