cancel
Showing results for 
Search instead for 
Did you mean: 

Feedback Form

tonysmith123
Dabbler
Posts: 24
Registered: ‎30-12-2007

Feedback Form

I have been trying to add a simple Feedback Form to my site on the PAYH server.
When trying to use the form an http 404 message appears.
I'm not sure whether this problem is due to my site being on PAYH while ccgi-bin is on old platform.
My feedback page is at http://www.tonysmith123.plushost.co.uk/Feedback.htm
Could anyone please advise on where I am going wrong?
14 REPLIES 14
SoulBriski
Grafter
Posts: 179
Registered: ‎15-06-2007

Re: Feedback Form

I've tried to help Tony with this, I think the problem relates to the fact that the tutorial he followed refers to the CCGI platform and not the new PAYH platform.
I couldn't help him though with the location of the relevant script for the PAYH platform.
I'm sure there is a formail.php script or similar but i dont know where it is or how to action it on the new platform
Adam1V
Grafter
Posts: 223
Registered: ‎31-07-2007

Re: Feedback Form

I really struggle with this side of things, but I have a feeling this is the error:
Quote
<FORM METHOD=”POST” ACTION=”http://homepages.plus.net/cgi-bin/form”>

should be:
Quote
<FORM METHOD=”POST” ACTION=”http://homepages.plus.net/cgi-bin/form.php”>

Also, ensure this form.php is set to chmod 777
SoulBriski
Grafter
Posts: 179
Registered: ‎15-06-2007

Re: Feedback Form

Does he not need to be pointing his action="" to the equivalent PAYH homepages
Kev_Mawson
Grafter
Posts: 196
Registered: ‎05-04-2007

Re: Feedback Form

Hi
PAYH does not offer any scripts by default as there are a number of free script out there available for users to get and use.
For form mail scripts, we have a number of customers using Jacks Form Mail which can be found on the link below:
http://www.dtheatre.com/scripts/
Hope that helps
Adam1V
Grafter
Posts: 223
Registered: ‎31-07-2007

Re: Feedback Form

Quote from: SoulBriski
Does he not need to be pointing his action="" to the equivalent PAYH homepages

I believe he is? (i.e the cgi-bin folder?)
tonysmith123
Dabbler
Posts: 24
Registered: ‎30-12-2007

Re: Feedback Form

Many thanks for suggestions.
I have tried adding "php" to code but still receive the same message.
Adam1V
Grafter
Posts: 223
Registered: ‎31-07-2007

Re: Feedback Form

with it set as .php have you set the permission on the php file itself?
It should be set to 777 (or is it 775?), try both
tonysmith123
Dabbler
Posts: 24
Registered: ‎30-12-2007

Re: Feedback Form

Thanks Adam. I've not come across php setting previously.
Could you possibly provide a link please to explain how I set to chmod 777 (or 775).
Thanks again.
Gabe
Grafter
Posts: 767
Registered: ‎29-10-2008

Re: Feedback Form

Hi Tony,
As you've correctly sussed, there IS actually a form mail script on homepages, not PAYH. It doesn't matter if the form page is on PAYH.
Your script has curly quotes all the way from method="post" to name="Realname". Replace them with plain quotes and it should work.
edit: and take the .php off again.
Gabe
tonysmith123
Dabbler
Posts: 24
Registered: ‎30-12-2007

Re: Feedback Form

Hi Gabe
Thanks a lot for advice, I never knew there were 2 types of quotation marks!
Getting rid of the "curly" symbols has changed things and things seem more promising.
However, I now receive this message
Bad Referrer - Access Denied
The form  attempting to use FormMail resides at http://www.tonysmith123.plushost.co.uk/Feedback.htm, which is not allowed to access this cgi script.
If you are attempting to configure FormMail to run with this form, you need to add the following to @referers, explained in detail in the README file.
Add 'www.tonysmith123.plushost.co.uk' to your @referers array
Could you advise on what this means please (have looked at README but cannot see solution).
Tony

Gabe
Grafter
Posts: 767
Registered: ‎29-10-2008

Re: Feedback Form

Hi Tony,
I think the script on homepages will only accept calls from https pages. Try putting the form in httpsdocs and calling it with https://etc.
At this point, your browser will flag up a certificate conflict - you can add an exception, but you might decide, for ease of use, that the form itself would be better served from homepages. Alternatively, install your own copy of that script, or another, on PAYH, and set it to accept calls from http.
Gabe
tonysmith123
Dabbler
Posts: 24
Registered: ‎30-12-2007

Re: Feedback Form

Hi Gabe
I do appreciate your help but I'm getting out of my depth in trying to create Feedback form. On the old server I had a form which relied on FP extensions but was very simple. On the new server, I was hoping I could have alternative which was fairly simple as I am a novice and not really into scripts etc (you probably gathered that from my ?s). Unfortunately, it seems to be much more complicated than I imagined.
I think I'll just insert an email link back to myself on my website as I can manage that!
Thanks again for all your help.
Tony
jah
Grafter
Posts: 43
Thanks: 2
Registered: ‎09-06-2007

Re: Feedback Form

All you need to do is follow the instructions in the error message which is to add 'www.tonysmith123.plushost.co.uk' to your @referers array.
To do this you need to edit the FormMail.pl perl script and add a comma and then 'www.tonysmith123.plushost.co.uk' inside the brackets on the line starting with @referers.
This is a basic access control mechanism and is easily circumvented - you've probably already seen the email below:
Thank You For Filling Out This Form
Below is what you submitted to tony. AT .tonysmith123.plus.com on Saturday, February 14, 2009 at 01:20:09
comments: This is a horribly insecure form and it's a good job you decided not to use it!
FormMail V1.92 © 1995 - 2002 Matt Wright
A Free Product of Matt's Script Archive, Inc.
Gabe
Grafter
Posts: 767
Registered: ‎29-10-2008

Re: Feedback Form

Tony was trying to use the formmail script ready installed on homepages. He can't edit that. The config of the script on homepages will accept calls from his plushost page, but not unless it finds https in the referer (see check_url). The certificate on PAYH is less than ideal for such purposes. The config of the script on homepages is open to limited abuse, but there are easier ways to cause mischief.
Gabe