I have two forms.
You can use ajax to submit the first form before the second one:
$('form[name=frm2]').submit(function() { var form1 = $('form[name=frm1]'); $.ajax({ type: "POST", url: form1.attr('action'), data: form1.serialize(), async: false; }); });