November 27th, 2008 by Luis Alves

Firefox problem with two forms

Today a friend enquired me about this problem. He had two forms on a page and when he submited the second one, the first one was the one that got submitted.

So later he found the solution and it was to put this on the submit buttons:

onclick=”document.forms[name_of_the_form].submit();”

Hope it helps.

Leave a Reply