how to get previous step values in next step in drupal multi step form? How to get previous step values in drupal in the next step in a multiform. I want to display the values other than drupal_set_message(). I want to use these previous values in other function in the next step.

function form_example_wizard_previous_submit($form, &amp;$form_state) {
  $current_step = &amp;$form_state['step'];
  $form_state['step_information'][$current_step]['stored_values'] = $form_state['values'];
  if ($current_step &gt; 1) {
    $current_step--;
    $form_state['values'] = $form_state['step_information'][$current_step]['stored_values'];
  }
  $form_state['rebuild'] = TRUE;
}

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

  $current_step = &amp;$form_state['step'];

  $form_state['step_information'][$current_step]['stored_values'] = $form_state['values'];


  if ($current_step &lt; count($form_state['step_information'])) {
    $current_step++;
    if (!empty($form_state['step_information'][$current_step]['stored_values'])) {
      $form_state['values'] = $form_state['step_information'][$current_step]['stored_values'];
    }
    else {
      $form_state['values'] = array();
    }

    // Force rebuild with next step.
    $form_state['rebuild'] = TRUE;
    return;
  }
}


function form_example_wizard_personal_info($form, &amp;$form_state) {
   $form = array();
  $form['pagenumber']= array(
      '#title' =&gt;t('Page Number'),
      '#type' =&gt; 'textfield',
      '#required' =&gt; TRUE
      );
  $form['wordscount']= array(
      '#title' =&gt;t('Words count'),
      '#type' =&gt; 'textfield',
      '#required' =&gt; TRUE
      );
  $form['calcvalue'] = array('#type' =&gt; 'hidden', 
  '#value'=&gt;'test' );
  return $form;
}


function form_example_wizard_location_info($form, &amp;$form_state) {
  $form = array();
  $form['quoteprice'] = array(
    '#type' =&gt; 'textfield',
    '#title' =&gt; t('Editing Your Document Will Cost'),
    '#value'=&gt;$quoteval,
    '#required' =&gt; TRUE,
  );
  return $form;
}
There are so many ways to send data from one from to other.


You can use session
You can also pass value in url


Example of pass by value

function register_form_submit($form, &amp;$form_state){
$name = $form_state['values']['name'];
$age = $form_state['values']['age'];

$data = array(
    'query' =&gt; array(
         'name' =&gt; $name,
         'age' =&gt; $age,
        )
    );

$form_state['redirect'] = array('/success', $data);
}


here is a link you can refer for send data

https://www.drupal.org/node/2064545