Forms to Go a no go

Hello All,

I tried to set-up a simple form with Forms to Go just to make sure I can get it working properly. I went through the tutorial at softpress.com and read through all the forum messages related.

I already successfully created a form with Tim’s php feedback form action, but I need an upload file option. All of the discussion said that using the regular Freway methods was very unsecure and I am hoping using FTG would take care of the security.

I don’t seem to have any problems other than after hitting the Submit button I don’t receive an email, success confirmation, or error message. I am not trying to upload files yet because I am only using the trial version and I don’t believe it’s allowed.

Here is the link: http://reeltimedvd.com/formstogo

I checked my server and all of the files seem to be in place. I added the feedback.php to the Action in the Form Setup and changed the Method to POST.

Any help or pointers in the right direction would be greatly appreciated.


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

Hi George

Well the form headers etc. look OK on the Form page itself but the problem is that we cannot see the code on the feedback.php page to check it!

Maybe you could put the code here for us to look at.

Remember 4 spaces before each line.

BTW I use a cgi file uploader script on my server to do this without any probs but that page is in a protected folder.

David


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

I just want to add that I’ve been using Forms To Go for quite some
time now and while it IS complicated, it DOES perform superbly. I find
it perfect for forms that require complex responses. For one client I
used it to create a file upload form that automatically notifies
different departments in the company based on the data supplied by the
form. For a simple feedback form it may be too much, as it is not
highly intuitive. Yet, if you get everything to its liking it perfoms
wonderfully in my opinion.

george wrote:

I tried to set-up a simple form with Forms to Go just to make sure I can get it working properly.


Ernie Simpson – Freeway 5 Pro User – thebigerns.com


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

David,

I looked at the php code in TextEdit, and while I don’t know anything about php, it looked like valid code (I used pascal/fortran 20 yrs ago in school and can code a bit of html).

It appears as if something is not working properly to activate it when the submit button is clicked. The file is in the correct spot on my server, but maybe my ISP cannot handle it. I was able to get a PHP Feedback Form action page to work though.

If you want to see the code, maybe it would be better to email it to you so I don’t take up a massive amount of space here.

Thanks.


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

George, this may be of help:

http://freewaytalk.net/thread/view/35515#m_35542

Joe

On 1 Aug 2008, at 04:42, george wrote:

David,

I looked at the php code in TextEdit, and while I don’t know
anything about php, it looked like valid code (I used pascal/fortran
20 yrs ago in school and can code a bit of html).

It appears as if something is not working properly to activate it
when the submit button is clicked. The file is in the correct spot
on my server, but maybe my ISP cannot handle it. I was able to get
a PHP Feedback Form action page to work though.

If you want to see the code, maybe it would be better to email it to
you so I don’t take up a massive amount of space here.

Thanks.


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 George - yes you could email it

You will get my address at the people part of the Forum website or info (at) deltadzine.com

David


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

Took a look at the thread Joe suggested and got rid of any actions - no better. I then added the FormFix action from Walter, still no luck.

Any other thoughts/suggestions would be greatly appreciated. I need to find a secure way to upload files from customers via my website.

Thanks.


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

Again I must say that working blind with no code to view is a bummer.

David


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

Just a thought here – how large is the file you are uploading? PHP
is, by default, configured to refuse anything larger than 2MB. But it
doesn’t fail in any sort of an interesting way, it just appears to
accept the form and does nothing with the file component. This can be
adjusted, but it’s not for the faint of heart.

Walter

On Aug 4, 2008, at 5:22 PM, george wrote:

Took a look at the thread Joe suggested and got rid of any actions

  • no better. I then added the FormFix action from Walter, still no
    luck.

Any other thoughts/suggestions would be greatly appreciated. I
need to find a secure way to upload files from customers via my
website.


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

Walt,

I got rid of the file upload portion to see if I could successfully receive an email and trigger the success and error pages. So far no luck.


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

Dave,

I sent you an email with the code.


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

As far as the “Success” and “error” pages go, how did you set up the Landing Pages in FTG? Make sure that the success and error page names are exactly correct including upper/lower case letters.


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

I set the landing pages up as external pages and checked that the spelling/cases matched.

The problem seems when the Submit button is pressed and the feedback.php page is activated, just a blank page and no underlying code.


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

Can you edit the feedback.php file in any way? Do you have a good programmer’s editor there, like the free TextWrangler or one of the more expensive ones?

Put the following two lines in as the very first thing after the opening <?php at the top of the file:

error_reporting(E_ALL);
ini_set('display_errors',1);

Then search through the code for anything that looks like this command:

header('Location: some/address/here');

…and add this line before it:

exit;

Save the file and upload it to your server. Now, submit your form. With luck, you will see a bunch of cryptic error messages, and if you post them here (copy and paste – this is fussy stuff) then one or another of us can hopefully debug it for you.

Walter


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

… just a blank page and no underlying code.

Are you using the embed error message option in FTG for your error page? If so, try removing that and just use a static error page as a test.


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

Right George I have had a look at this and got it working on my server.

Initially I had an error on line 66 of the feedback.php ‘unexpected T string’ so I deleted that line which relates to the Request Type ( I subsequently put it back in with no spaces in Request Type)

$FTGRequest Type = DoStripSlashes( $_REQUEST['Request Type'] );

Then I got an error on the next but one line after (now 67 after 66 deletion)

$FTGFile upload = DoStripSlashes( $_REQUEST['File upload'] );

This probably occurs because you have removed the fileupload section from the form page - so I deleted that and the form then worked - I think you probably got 1 of my tests!

There is a problem with your Tech/General selector in that the value options are not coming through - I am only getting ‘Type’ being submitted not Tech or General - you may not have done those correctly.

Also referring back to Select Type you have to make sure that the name on the form matches the name in the php file. I am not sure in your case if one of the problems was the extra space being an invalid character or not but I think it is good practice to use underscores instead of spaces in cases like this.

So all in all the feedback.php does work (on my server) but that is only one step in that you need to add the file upload section back in and test again.

So in conclusion redo the form with underscores instead of spaces, correct the Request Type options and run it through FTG again.

David


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

As far as the Request Type part of the form(html) page should go like this

	<select name="Request_Type" size="1">
	<option value="Tech" selected="selected">Tech</option>
	<option value="General">General</option>
	</select>

What you currently have is this

<select name="RequestType" size=1 id="RequestType">
<option value="Yes" label="Tech">Tech</option>
<option value="Yes" label="General">General</option>
</select>

David


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

Dave,

Thanks for figuring this out. I will try out your suggestions and am sure I will figure it out.

Yes, I did get your email.

Then it’s on to uploading files!


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

All I did was reset the name in FW to Request, uploaded to my server, and re-did the php via Forms to Go. Everything seems to work now.

Apparently FTG does not like names with spaces - everyone beware!

Thanks for everyone’s help.


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

FTG is not the only thing that doesn’t like spaces in names. Most form handlers will fall over and complain if you use them.

Walter


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