function form_example_tutorial_11_submit
Submit function for form_example_tutorial_11().
Adds a submit handler/function to our form to redirect the user to a confirmation page.
Related topics
File
-
form_example/
form_example_tutorial.inc, line 842
Code
function form_example_tutorial_11_submit($form, &$form_state) {
// Simple submit function that changes the redirect of the form based on the
// value of the name field.
$name = $form_state['values']['name'];
$form_state['redirect'] = 'examples/form_example/tutorial/11/confirm/' . urlencode($name);
}