This topic needs a title

I am successfully using FormsToGo to create forms using “Freeway Pro v4.3.2” and it is sending me all the data correctly in an email.

I now want to add an “upload file” function to an existing form, so that a file from the customer’s computer is attached to the email sent to me, but I can’t understand how to do this using FreewayPro as my website generation program.

Between the = = = ='s below are the instructions from FTG’s “Help”. It gives an example using Dreamweaver, but I don’t understand how to translate that into FreewayPro.

Can somebody please give me simple step-by-step instructions for FreewayPro 4.3.2?

= = = =

In order for an HTML tag to accept files in an HTML form’s field must be:

When the HTML form displays in your browser, this tag offers users the possibility of selecting a file from their hard disks, so that it can be uploaded to the server along with the rest of the data and the HTML form.

But the attribute “enctype” of the HTML form must be modified, so that the data of the HTML form and the file can be jointly uploaded.

Furthermore, the page must be sent through the POST method.

In this case, if you edit your web page in a text processor, the tag must look like this:

or if you are using some web page design program, find the window where parameters of the form are adjusted.
Note: The enctype=“multipart/form-data” attribute must only be used when the form has “file” type tags to upload files; otherwise, the form will incorrectly send the field values of the HTML form to the server.
= = = =


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

Philip,

Don’t forget to add a subject when making a new thread.

I have never used Forms to go but here are answers to your question ‘hopefully’…

The bit about the ‘<input type…’ is a text field with the type set to file, this is the upload field and browse button (Can be different format on different browsers). Freeway can’t do this ‘directly’ as far as I know… to be honest I have never delved into it too deeply because I could never find a way of setting this by entering a normal text field and then altering the input value in the inspector so personally I just set this type of field for uploads by hand coding it, so to hand code this field into your form…

  1. Place your cursor where you want this field to be and then select ‘Insert > Markup Item’ from the Freeway menu

  2. Enter this following text into the Markup window:

  3. Close the markup item, now the form will show this field when uploaded to the server or in preview if not a .php page

Now onto the form settings…

  1. Select ‘Page > Form setup…’ from the Freeway menu

In the Form setup window…

  1. Select ‘POST’ from the ‘Method’ menu (The method for sending the form)

  2. Enter ‘contactus.php’ in the ‘Action’ field (or whatever file or page the form is sent to without the quotes).

  3. Select the ‘Extend’ tab

  4. Press the ‘New’ button

  5. Enter ‘enctype’ as the name and ‘multipart/form-data’ as the value (Form content type, should be entered without the quotes).

HTH
Mike

On Feb 1, 2009, at 11:05 AM, Philip Caplan wrote:

I am successfully using FormsToGo to create forms using “Freeway Pro v4.3.2” and it is sending me all the data correctly in an email.

I now want to add an “upload file” function to an existing form, so that a file from the customer’s computer is attached to the email sent to me, but I can’t understand how to do this using FreewayPro as my website generation program.

Between the = = = ='s below are the instructions from FTG’s “Help”. It gives an example using Dreamweaver, but I don’t understand how to translate that into FreewayPro.

Can somebody please give me simple step-by-step instructions for FreewayPro 4.3.2?

= = = =

In order for an HTML tag to accept files in an HTML form’s field must be:

When the HTML form displays in your browser, this tag offers users the possibility of selecting a file from their hard disks, so that it can be uploaded to the server along with the rest of the data and the HTML form.

But the attribute “enctype” of the HTML form must be modified, so that the data of the HTML form and the file can be jointly uploaded.

Furthermore, the page must be sent through the POST method.

In this case, if you edit your web page in a text processor, the tag must look like this:

or if you are using some web page design program, find the window where parameters of the form are adjusted.
Note: The enctype=“multipart/form-data” attribute must only be used when the form has “file” type tags to upload files; otherwise, the form will incorrectly send the field values of the HTML form to the server.
= = = =


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

Hi Mike B

Sorry about the Subject – I was sure I’d started by entering it, but maybe I forgot in the process of trying to carefully describe my problem!

I tried using steps (1), (2) and (3) of your description, but that only put what seemed to be an empty textbox in the location of the markup item.

What I was expecting was a textfield accompanied by a button called “Choose file” or something similar, so that when the visitor pressed it it gave them a way to locate a file on their computer.

Further help, please…


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

Philip,

If I add:
in a markup item I get a field and a ‘Browse’ button…

See here:
http://www.easibase.com/examples/

The above page has no submit, it’s just to show you what needs to be done although the ‘Browse’ button will work as expected.

HTH


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

Hi again Mike

Problem solved! I had copied-and-pasted into the Markup item:

Viewing the Source after uploading, I see it appears as:

So obviously the double-quotes I had pasted from your forum message (to avoid me mis-typing!) were ‘smart’ quotes, not simple ASCII ones.

I retyped them in Freeway and re-uploaded, and now it works.

Thanks! Now I’ll move on to trying the rest of your instructions…


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

It works!

Thanks, Mike B.

What you described worked, and now the emails sent by my forms have the file correctly attached to them.

One thing puzzles me: the attached file has the original name it had on the sending computer, so I don’t understand what part “mypicture” plays in the proceedings.

That’s just curiousity!! Thanks anyway. PHILIP


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

Glad it works …

“mypicture” is the array that holds the attachment information ‘value’.

Mike


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