-1

I need an help on How to submit 2 form's POST methods both with a one single click. Suppose that I have two seperate forms I want my secound form to be submited at the time I click on the first form action button.

Iman Nia
  • 2,255
  • 2
  • 15
  • 35

1 Answers1

0

You need to do this with Javascript first place a button that is going to submit both forms like this in your html

<button type="submit" class='input_submit' style="margin-right: 15px;" onClick="submitBothForms()">submit both</button>

then your submitBothForm method has to includes these lines

document.forms["first_form_name"].submit();

document.forms["secound_form_name"].submit();
Iman Nia
  • 2,255
  • 2
  • 15
  • 35