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