How do I submit two forms with only one click? There are two forms in my web page: one of them is displayed and has a submit button. And the other is hidden. Like the following:
<form id="form1" action="/url1" method="post">
...
<input type="submit" value="Submit">
</form>
<!-- Hidden form -->
<form id="form2" action="/url2" method="post">
<input type="hidden" ...>
<input type="hidden" ...>
...
</form>
How can I submit both of them by only clicking the button in the first form?