Getting data from submitted form I am trying to get data from a submitted form - as far as I can tell, data is being passed correctly, but I want to look at and manipulate it.

I'm trying to print_r() it with no success - because it happens after form submission and it isn't on the previous page.

This is my submit function so far:

function multi_reg_pagecreate_submit($form, &amp;$form_state) {

$form_state['values']['multi_reg_checkbox'];

}


The checkboxes are generated on the page /multiple-registration, but I have no way of checking my variables once this page is submitted.

Any help would be appreciated
Check your variables by printing them with drupal_set_message().

function multi_reg_pagecreate_submit($form, &amp;$form_state) {
  drupal_set_message('&lt;pre&gt;' . print_r($form_state['values'], true) . '&lt;/pre&gt;');
}


Alternatively, you can use debug()

debug($form_state['values'], 'Debugging the form', TRUE);