If you have more than one form on the same page, you MUST use Multiple
Form Action. Otherwise, you will end up with nested forms:
form action="foo" method="post" <- Freeway makes this
input name="name"
input name="rank"
input name="serial_number"
form action="bar" method="post" <- you add this
input name="total"
input type="submit"
/form
input name="favorite_color"
input type="submit"
/form
By itself, Freeway won’t allow you to add a second form to the page
that will be outside of the one-and-only form created with the Form
Setup dialog. If you look at the outline above, you’ll see that there
are two submit buttons, which is at best ambiguous from the server’s
point of view. If you press the inner submit button, which form is
being submitted? If you press the outer (last on the page) submit
button, which fields will be sent to the server? It’s also invalid
HTML, but that’s beside the point – the standards exist not as a goal
in themselves, but as a means of making your intention as a designer/
programmer clear to the dumb machines.
If you use the Multiple Forms Action, you will get rid of the outer
form, and will end up with two separate-but-equal forms on the same
page. Press the submit button in one or the other, and all will be well.
I think that if you’re using the Mals stuff at all, and you expect it
to work clearly and predictably, you should either iframe it into the
page (an excellent suggestion) or use Multiple Forms. Under no
circumstances should you remove it from the page, generate the FTG
handler, and then put it back. That is a sure recipe for disaster, IMO.
Walter
On Jun 11, 2011, at 12:56 PM, Dan J wrote:
In this kinds of situations I end up using:
TagWrap - ActionsForge
“Tag Wrap” and end up just writing out the code myself. Not
necessarily the best method, but it works. Plus I’m sure that
multiple form action would work too. I too would be interested in
hearing how you fixed it.
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options