which, try as I might, cannot get to work. Part of the problem is that although there are thank you and error pages and a cgi script, the submit button doesn’t submit anything so that there’s no sent email nor even a link to the Thankyou page.
I’m not even sure what is wrong with it. It may be possible that I’ve overridden the script in attempting to make it work but I don’t really know how to check this in Freeway. I’m using Freeway Pro 4.4.2 on a Mac Pro running OSX 10.4.11.
Any help to fix this so it works would be greatly appreciated
The form closing tag is right after the form action, this needs to be
after the submit button. I don’t know why Freeway is placing the tag
there as it would normally place this after the Submit button, have
you just constructed the form normally in Freeway are are you adding
anything in markup items… like the submit button maybe?
Mike
On Jan 9, 2008, at 11:22 AM, mikesart wrote:
I have a form on this page of the site:
www.supa-electrical.com.au/toorder.html
which, try as I might, cannot get to work. Part of the problem is
that although there are thank you and error pages and a cgi script,
the submit button doesn’t submit anything so that there’s no sent
email nor even a link to the Thankyou page.
I’m not even sure what is wrong with it. It may be possible that
I’ve overridden the script in attempting to make it work but I don’t
really know how to check this in Freeway. I’m using Freeway Pro
4.4.2 on a Mac Pro running OSX 10.4.11.
Any help to fix this so it works would be greatly appreciated
As far as I know I’ve constructed the form how I’ve done them in the past though admittedly when there’s a long time between constructing these forms as there is now, it feels a bit like reinventing the wheel.
Is it possible that Freeway has changed in the way it codes these forms under CSS?
Looking at your page you have a reference in the form to a file: toorder-goa.php
Are you trying to use the PHP form action? or as you say a cgi script?
There is no method=post directing the form to a cgi script which you need to set up in Page>Form Setup
Or alternatively are you using the PHP feedback form action as an item or page action? or both?
Probably a good idea to remove any of these actions that you have used and reapply them or maybe copy your form to a virgin page and try applying it there (for testing).
bla, bla, bla,
Don't know off hand what this might be happening here, if you want to
send me a stripped down freeway file with the form for me to have a
look you can contact me from http://www.easibase.com/easicontact.php
and I will give you an address to send the file to.
Mike
On Jan 9, 2008, at 11:52 AM, mikesart wrote:
As far as I know I’ve constructed the form how I’ve done them in the
past though admittedly when there’s a long time between constructing
these forms as there is now, it feels a bit like reinventing the
wheel.
OK, so you are trying to send the form to a cgi script from the forms
action under Freeways ‘Form Set-up’ but you are also using the ‘PHP
action’.
So the first thing is to decide which you want to use, the cgi script
you have set up in Freeway or the ‘PHP form action’? then remove the
other.
After removing the action the form then tries to connect to the cgi
script you placed in the Freeway form action…
also I found to get the ‘PHP form’ action to work I had to remove the
action from where you have it and apply it to the * page *, I did this
and the form tag set correctly.
You may also want to look at the ‘PHP easiForm’ action.
Hi Mike thanks for your help. I removed the cgi script and set the PHP action to ‘page’. After testing it, the form now sort of works. The only problem is that after filling out and submitting the form, I get only the error page, so it doesn’t get emailed through.
I’ll check the form again but so far can’t find the culprit. I’ll have a look at the PHP easiForm action to see if this will help.
There has been an error in the processing of the form
So on looking at the php code the ‘PHP Form’ action creates it appears that one of several things could happen to send the user to the error page, the obvious one is if the recipient email address is not the correct format, have you double checked the email you are using in the ‘PHP form’ action?
Beyond this it would be simple there was access to the form on the server, doing some checking on the script would rapidly find out what is causing the problem.
I’m not trying to put you off this action as I know others use it without problem, but if you can run ioncube on your server you * could * have the ‘PHP easiForm’ action and your form up and running in less than 10 to 15 minutes on your first attempt, you would also have informative user errors, injection protection, badword protection and much more, in saying this the ‘PHP easiForm’ action license is not free while the action you are using is, although you can set up the form and test the action before buying.
OK, I think I found the problem, the ‘PHP Feedback Form’ action used $HTTP_SERVER_VARS[‘HTTP_REFERER’] to check that the form script is being accessed from the same domain it is used on, this does not always get set on depending on server and Browser, if empty the script will redirect to the error page. Now on the server where I tested the action this value is empty so the form gets redirected to the error page. If I remove this the form gets sent and I get directed to the success page.
There’s a PHP preference called register_long_arrays (on/off) that
you might try setting to on. Or TIm could write the form processor to
use the more current $_SERVER[‘HTTP_REFERRER’] style.
Walter
On Jan 9, 2008, at 6:04 PM, Mike B wrote:
OK, I think I found the problem, the ‘PHP Feedback Form’ action
used $HTTP_SERVER_VARS[‘HTTP_REFERER’] to check that the form
script is being accessed from the same domain it is used on, this
does not always get set on depending on server and Browser, if
empty the script will redirect to the error page. Now on the server
where I tested the action this value is empty so the form gets
redirected to the error page. If I remove this the form gets sent
and I get directed to the success page.
Thanks again to everybody who contributed to this thread.I have learnt a lot about how to set up forms and I have finally got the form working and hopefully the client is now satisfied.
I folowed the video tutorial step by step used php and html nothing works.
I did all these that tech support told me and nothing.
Form setup can not be unchecked and according to what I read here has to be php or cgi.
This what tech support send me yesterday.
Please help.
Thanks,
Rick
Hi Rick
Note that the functionality will only work once the files have been uploaded (as it needs to work with PHP on a web server)
GoDaddy is one of the only hosting services that doesn’t play very well with the PHP Feedback Form Action, and you will need to open the Advanced Settings panel of the Actions palette. In there you will see specific settings which try to get it working on GoDaddy.
Try following the instructions after checking and then clicking on the Use GoDaddy’s Mail Script button to see the settings you need to change. You might then need to check the Define ‘smtp’ (GoDaddy) option below.
If you still can’t get it to work after doing that, try changing the suffix of the file name in the Inspector back from .php to .html
Download the example Freeway document on that page as well as it will give you an idea of how to set the page and Action up. If you get stuck you can always copy elements from this document to your own Freeway file.
If you haven’t done so already take a look at Paul’s excellent video on setting up the PHP Feedback Form Action
(note that you don’t need to change the page extension to .php as Paul mentions in the video at 3.18)
Remove the email address you currently have in your Form action (Page > Form Setup dialog) and leave all of these settings blank. The Action will set all of this up for you automatically.
Once you’ve the form set up and the Action applied upload it to your server and try the form out. If all goes well you should get an email through shortly after. If you get stuck then please post again and we can help you further.
Regards,
Tim.
Hi,
in rummaging around for other tasks related to this, I did find some things about GoDaddy and forms that may be of help.
1 - Ensure that the server they are using to host your site is a Linux/Apache one running PHP. They do offer a Hybrid ASP/PHP service. This runs on a Microsoft IIS server, and PHP’s mailing functions are apparently not supported. Check that your site is hosted on a PHP/Linux/Apache machine. Ask them to move your site to one if it is not.
This may help - but it does strike me that GoDaddy does some peculiar things which are not normal, and it may be worth considering switching to one of the many Freeway friendly hosts who post regularly here.
I solved the problem with Tim’s suggestion of copy some elements from the sample form and updated to my need.
However that was not the way I wanted to go because I;m learning the software and I wished that just following the tutorial properly would have been enough.
I understand that is complex, and Godaddy is not the most reliable server. They were telling me that the problem was that
FREEWAY 5 and the way that operate.