Accessing Webform 4 Submitted data I have a webform on my site and on user submission, I want to send the webform data to some php application that get the value of some variables from the URL. 

This task requires me to access the webform submitted data when the user clicks "Submit" button and construct a URL (/myphpapplication?query=....) containing user filled webform values. 
Please help me to achieve this.
As Oswald mentioned, you have to implement some hooks in your custom module to redirect your form submission. Here is a quick example (assume your form_id is 'webform_client_form_1'):




// hook_form_alter()
function customform_form_alter(&amp;$form, &amp;$form_state, $form_id) {

if ($form_id == 'webform_client_form_1') {
    // Add form_submit() handler
    $form['#submit'][] = 'customform_webform_submit';
}

}

// form_submit()
function customform_webform_submit($form, &amp;$form_state) {

// Submited values are in $form_state['values']['submitted_tree']
$field_values = customform_webform_values( $form_state['values']['submitted_tree']    );

// Build URL Query
$query = '';

foreach ($field_values as $value) {
    $query .= $value . '&amp;';
}

$redirect = array ( 
                'myphpapplication',
                array (
                    'query' =&gt; array ( 
                        'query' =&gt; rtrim( $query, "&amp;" )  // Get 'query' values with $_GET['query']
                    ) 
                ) 
            );

$form_state['redirect'] = $redirect;

}

// Recurse through webfrom submited values
function customform_webform_values($component) {

static $webform;

foreach($component as $key =&gt; $value) {
    if (is_array($value)) {
        customform_webform_values($value);
    }
    else {
        $webform[$key] = $value;
    }
}

return $webform;
}