FreewayTalk

10 replies to this thread. Most Recent

johnrob

2 Jul 2008, 8:29 am

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

quote

waltd

2 Jul 2008, 11:29 am

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

quote

Freeway user since 1997

www.walterdavisstudio.com

johnrob

2 Jul 2008, 11:48 am

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 <form> tags to an HTML item which contains my form fields and submit button?

John

quote

Joe Billings

2 Jul 2008, 11:58 am

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 <form> tags to an HTML item which contains my form fields and submit button?

John

quote

For free and responsive Freeway support visit www.softpress.com/support/help_desk.php

johnrob

2 Jul 2008, 11:59 am

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.

quote

waltd

2 Jul 2008, 12:17 pm

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 <form> tags to an HTML item which contains my form fields and submit button?

John

quote

Freeway user since 1997

www.walterdavisstudio.com

johnrob

2 Jul 2008, 12:30 pm

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!

quote

Joe Billings

2 Jul 2008, 12:49 pm

Hi John,

All you need to do is ask :)

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!

quote

For free and responsive Freeway support visit www.softpress.com/support/help_desk.php

johnrob

2 Jul 2008, 12:54 pm

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

quote

Joe Billings

2 Jul 2008, 1:02 pm

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.

quote

For free and responsive Freeway support visit www.softpress.com/support/help_desk.php

Back to Top

chuckamuck

2 Jul 2008, 3:41 pm

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. ;-)

quote

Freeway Pro 5, G4 Powerbook 1.33 ghz 1.25gb ram, 2.3 ghz Dual Core MacPro 2gb ram

FreeCounter