/*hook_submit*/ function form_example_form_submit($form, &$form_state){
$fe_id = db_insert('form_example')
->fields(array(
/* 下面是变量*/
mynumber=> $form_state['values']['mynumber'],
mytextfield=> $form_state['values']['mytextfield'],
mytext=> $form_state['values']['mytext'],
))
->execute();
drupal_set_message(t('Your form has been added'));
}