How to obtain the values of the webform?

Hello, please tell me, I add the webform to your handler, and I now in the handler to obtain the value of the fields webform? Just after clicking the submit button, you need to get the selected field values
function test_modul_form_webform_client_form_7_alter(&$form, &$form_state) {
 $form['#submit'][] = 'dbsubmit';
dbsubmit function() {
June 10th 19 at 15:52
1 answer
June 10th 19 at 15:54
If Drupal 7, then:
function dbsubmit($form, $form_state) {
 $values = $form_state['values']; // Array of values from the form
Understood, thank you. And looked what values are in the array like so:
 ("hello<pre>".print_r($form_state['values'], true)."</pre>");
- gay_Zboncak1 commented on June 10th 19 at 15:57
I recommend to use the Devel module instead of print_r() and drupal_set_messasge(). Devel has a lot of different debugging functions:

P. S. But the best solution is to configure xdebug. - Elva commented on June 10th 19 at 16:00
Thank you very much, but that's just not long installed the Devel module) will use - gay_Zboncak1 commented on June 10th 19 at 16:03

Find more questions by tags Drupal