in reply to saving form values to database

To be more clear: I'd like to pass all the values selected to a save subroutine where the sql statement will be created and executed.