Fill #options of select field
Submitted values are contained in $form_state['values']:

function my_submit_handler($form) {
  $selected_options = array_filter($form_state['values']['my_field']);
}


e.g. if you select '1' and '2' on the form, $selected_options will be array('a', 'b')