Debugging what has been submitted in a form
You can display the submitted values in your hook_form_submit() and set it like this (example):

function form_example_tutorial_7_submit($form, &amp;$form_state) {
  drupal_set_message(t('The form has been submitted. name="@first @last", year of birth=@year_of_birth', array(
   '@first' =&gt; $form_state['values']['first'],
   '@last' =&gt; $form_state['values']['last'],
   '@year_of_birth' =&gt; $form_state['values']['year_of_birth'],
  )));
}