Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Client-side Scripting _ Multiple Submit Buttons

Posted by: Blue Man Group Aug 23 2019, 12:33 PM

Hello, I have an HTML form which had two sets of fields under different Div tags. I want to have a submit button half way down the page that when submitted will submit the top portion of the fields (Div1) and a submit button at the bottom of the page that will submit the lower half fields (Div2). Any ideas on how to do this?

Posted by: Darin McGrew Aug 23 2019, 01:15 PM

QUOTE(Blue Man Group @ Aug 23 2019, 10:33 AM) *
Hello, I have an HTML form which had two sets of fields under different Div tags. I want to have a submit button half way down the page that when submitted will submit the top portion of the fields (Div1) and a submit button at the bottom of the page that will submit the lower half fields (Div2). Any ideas on how to do this?
That sounds like two separate forms. The top form has fields submitted by the top submit button, and the bottom form has fields submitted by the bottom submit button.

Posted by: Blue Man Group Aug 23 2019, 02:34 PM

QUOTE(Darin McGrew @ Aug 23 2019, 02:15 PM) *

QUOTE(Blue Man Group @ Aug 23 2019, 10:33 AM) *
Hello, I have an HTML form which had two sets of fields under different Div tags. I want to have a submit button half way down the page that when submitted will submit the top portion of the fields (Div1) and a submit button at the bottom of the page that will submit the lower half fields (Div2). Any ideas on how to do this?
That sounds like two separate forms. The top form has fields submitted by the top submit button, and the bottom form has fields submitted by the bottom submit button.


So you think I can just put each Div tag (Div1 and Div2) in separate Form tags both on the same page?

Posted by: Darin McGrew Aug 24 2019, 02:19 AM

QUOTE(Blue Man Group @ Aug 23 2019, 12:34 PM) *
So you think I can just put each Div tag (Div1 and Div2) in separate Form tags both on the same page?
I don't see why not.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)