Hello,
Im using Drupal 6.19 and the webform module on my site.On a particular form,i want to do some additional processing with the values entered,so i created a module and implemented hook_form_alter, and added my own function called mymodule_webform_submit to the list of submit event handlers.
Suppose i have two fields in the form having field key values name and address respectively. How to print the values of those fields in mymodule_webform_submit function ?. Some example would be really appreciated. Below is my code so far.
<?php
function mymodule_form_alter(&$form, &$form_state, $form_id) {
if($form_id == 'webform_client_form_8') {
$form['#submit'][] = 'mymodule_webform_submit';
}
}
function mymodule_webform_submit(&$form,&$form_state) {
drupal_set_message($form_state['values']['name']);
}
?>
Please help Thank You