D
Dave Smithz
Hello there,
Summary: Is it OK to use Forms within forms and will the right submit button
presses correspond to the correct form action?
Details:
I want to build a big HTML table which will contain certain functionality
that requires the forms to have lots of different command buttons.
I do not want to have to use JavaScript as some users may have it disabled.
Because of the way I will be laying out the form, it will result in a
scenario where I have forms within forms.
Therefore if you imagine the entire table contained within a form, but also
within that table, I also have other smaller forms with different actions if
the user presses a submit button within that form. So generally, when a user
presses a submit button, I want the action that is taken to be the action
defined by the PARENT form that the submit button is contained within.
A further example:
FormA with action "a.htm" has text boxes tb1 tb2, tb3 and a submit button
(named: Asubmit).
It also contains FormB with action "b.htm" which has text box tbB1 and tbB2
and a submit button (named BSubmit).
If the user presses Asubmit I want the action to be a.htm and at least the
text boxes data for tb1 - tb3 to be sent.
If the user presses Bsubmit I want the action to be b.htm and as least the
text boxes data for tbB1 and tbB2 to be sent.
Is this how it will work and will this work in all browsers and is it OK by
HTML standards to do things this way?
I hope this makes sense.
Kind regards
Dave.
Summary: Is it OK to use Forms within forms and will the right submit button
presses correspond to the correct form action?
Details:
I want to build a big HTML table which will contain certain functionality
that requires the forms to have lots of different command buttons.
I do not want to have to use JavaScript as some users may have it disabled.
Because of the way I will be laying out the form, it will result in a
scenario where I have forms within forms.
Therefore if you imagine the entire table contained within a form, but also
within that table, I also have other smaller forms with different actions if
the user presses a submit button within that form. So generally, when a user
presses a submit button, I want the action that is taken to be the action
defined by the PARENT form that the submit button is contained within.
A further example:
FormA with action "a.htm" has text boxes tb1 tb2, tb3 and a submit button
(named: Asubmit).
It also contains FormB with action "b.htm" which has text box tbB1 and tbB2
and a submit button (named BSubmit).
If the user presses Asubmit I want the action to be a.htm and at least the
text boxes data for tb1 - tb3 to be sent.
If the user presses Bsubmit I want the action to be b.htm and as least the
text boxes data for tbB1 and tbB2 to be sent.
Is this how it will work and will this work in all browsers and is it OK by
HTML standards to do things this way?
I hope this makes sense.
Kind regards
Dave.