Multiple Forms on a single page

Hi,
I cannot seem to get the Table Multiple Form action to work with a multipart/form-data encoding (to upload a file). The form seems to submit ok, but won’t accept the upload. If I test the validity of my code etc on a single page form it works, just moving it to this action stops it working.

Does anyone know if this is a known problem or if there is another way of doing this?

Thanks,

jr


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

How are you setting the multipart bit? Is there a field in your copy
of the Action to add this? I recall hacking a version that had this,
but I’m not sure if it made it into distribution. If you are setting
this property in the form setup dialog, realize that it is being
stripped out by the Action.

What handler system are you using to “catch” the files? There are
some wrinkles there, depending on the precise technique you are using.

Walter

On Jul 2, 2008, at 4:29 AM, johnrob wrote:

Hi,
I cannot seem to get the Table Multiple Form action to work with a
multipart/form-data encoding (to upload a file). The form seems to
submit ok, but won’t accept the upload. If I test the validity of
my code etc on a single page form it works, just moving it to this
action stops it working.

Does anyone know if this is a known problem or if there is another
way of doing this?

Thanks,

jr


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

Hi Walt,

The action is Table Multiple Form 1.10. There is a field called Encoding which I enter “multipart/form-data”.

I would use the action Multiple Form 2.0, but this doesn’t have an encoding field, though there are hidden fields you can add.

To be honest I find these actions hit and miss and can never figure out how to get multiple forms to work consistently. I don’t like having to enclose the form in a table so I really need a reliable way of adding multiple forms to my page. Can I add tags to an HTML item which contains my form fields and submit button?

John


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi John,

There is a No Forms Action that comes bundled with Multiple Forms.
This is used to remove the default form tag from the page that
appears as soon as you place a form item on there. You can then add
your own form/forms anywhere you like using markup if you wish.

I hope this helps.

Joe

On 2 Jul 2008, at 12:48, johnrob wrote:

Hi Walt,

The action is Table Multiple Form 1.10. There is a field called
Encoding which I enter “multipart/form-data”.

I would use the action Multiple Form 2.0, but this doesn’t have an
encoding field, though there are hidden fields you can add.

To be honest I find these actions hit and miss and can never figure
out how to get multiple forms to work consistently. I don’t like
having to enclose the form in a table so I really need a reliable
way of adding multiple forms to my page. Can I add tags to an
HTML item which contains my form fields and submit button?

John


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

Forgot to add that I have used the No Forms item on the page too. I just cannot get the multipart/form-data encoding to work on the form section I want.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The encoding field is not the same as the enctype. Take a look at the
output of this form, and make sure that the result looks like this:

<form action="something" method="post" enctype="multipart/form-data">

I believe that encoding would be to set the character set for the
form, like UTF-8 or windows-latin or something like that.

Walter

On Jul 2, 2008, at 7:48 AM, johnrob wrote:

Hi Walt,

The action is Table Multiple Form 1.10. There is a field called
Encoding which I enter “multipart/form-data”.

I would use the action Multiple Form 2.0, but this doesn’t have an
encoding field, though there are hidden fields you can add.

To be honest I find these actions hit and miss and can never figure
out how to get multiple forms to work consistently. I don’t like
having to enclose the form in a table so I really need a reliable
way of adding multiple forms to my page. Can I add tags to
an HTML item which contains my form fields and submit button?

John


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

Walt, I tried this in a markup item and guess what - it worked! Great!

I wish there was an multi form action that would include the enctype option, so that the form could be easily laidout in Freeway, but for now I"ll have to jiggle it a little with markup.

Thanks again!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi John,

All you need to do is ask :slight_smile:

I’ll get that added as soon as I can.

Joe

On 2 Jul 2008, at 13:30, johnrob wrote:

Walt, I tried this in a markup item and guess what - it worked! Great!

I wish there was an multi form action that would include the enctype
option, so that the form could be easily laidout in Freeway, but for
now I"ll have to jiggle it a little with markup.

Thanks again!


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

Hey Joe, sorry didn’t realize you wrote this action. Thanks for your help that would be great.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

What I meant is that if you (or anyone) has any suggestions then
please feel free to post them. If you don’t ask you might not get,
although we do try! =)

On 2 Jul 2008, at 13:54, johnrob wrote:

Hey Joe, sorry didn’t realize you wrote this action. Thanks for your
help that would be great.


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

What I meant is that if you (or anyone) has any suggestions then
please feel free to post them. If you don’t ask you might not get,
although we do try! =)

This is my official request for Softpress programers to learn to read minds. :wink:


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options