Can we call submit handler of one form into another form? Can we call submit handler of one form into another form?

I have two forms say user profile form and  choose membership plan I want to unset submit function of choose membership plan and want to show in user profile form and also both forms field must save.

like  multi-step form.

 function myform_form_alter(&amp;$form, &amp;$form_state, $form_id) {
   if($form_id === "ms_membership_list_memberships_form") {
     $form['#validate'][] = "_myform_form_submit_handler";
   }
   if($form_id === "user_profile_form") {
     $form['#validate'][] = "_myform_form2_submit_handler";
   }
 }

 function _myform_form_submit_handler($form, &amp;$form_state) {
   $form_state['rebuild'] = TRUE;
   $form_state['redirect'] = '/user/1/edit';
 }

 function _myform_form2_submit_handler($form, &amp;$form_state) {
   $form_state['rebuild'] = TRUE;
   $form_state['redirect'] = '/ms/checkout';
 }
You could pass the page number as argument to your hook_menu()

&lt;?php    
function mymodule_menu() {
    $items['abc/def/%'] = array(
      'page callback' =&gt; 'mymodule_abc_view',
      'page arguments' =&gt; array(2),
    );
    return $items;
  }


Then if it is step-one for example, get your subscription plan form, render it then submit.
In the submit function use:

 &lt;?php
// Force the form to rebuild. If we do not do this, the value(s) in $form_state['storage'] will be lost
$form_state['rebuild'] = TRUE;
//Redirect to step two
$form_state['redirect'] = 'abc/def/2';


In step 2 get the user profile so that in the next submission you'll have the data from both forms in the submit function.