Welcome to WebmasterWorld Guest from 184.108.40.206
ASCII FTP'd the script into the cgi-bin folder & chmod 755.
Problem is that when I test the form and click 'Submit' I get a
405 - Method not allowed
The requested method POST is not allowed for the URL /cgi-bin/formmail.pl.
Site host says that script help is not within the realm of their service.
Any help would be much appreciated. Thanks.
[edited by: phranque at 8:11 am (utc) on Aug. 5, 2008]
[edit reason] removed specifics [/edit]
you could try '... method="GET" ...' in your form tag and see if that works.
whether your "action" script is php or perl, the POST method problem will be similar.
there are some restrictions to using the GET method so it may not work in your case or the script may not be equipped to handle the GET method.
As an update my host pointed me to resetting the scripting which I did and then tried one of their cgi scripts which worked so cgi scripting seems to be ok. Mine (i.e. Matt's) still throws an error albeit a different one now. (Their script simply sends an e-mail to a specified address when a link is clicked. There is no POST/GET method in it.) I now get 500 internal server error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
I have tried changing the method to GET and changing the script from .pl to .cgi but still get the error. Is it my problem that people here can help with or is it on the host's server?
[error] [client ipaddress] Premature end of script headers: /home/fhlinux153/j/dominname/user/htdocs/cgi-bin/formmail.pl
Afraid this doesn't mean much to me?
type cmd, press enter.
Navigate to where the script is:
cd\ [enter] brings you to the root of your local H.D.
cd whatever\directories\to\directory\containing\script [enter]
perl formmail.pl [enter]
This is the first step, test that bugger offline. If you can SSH to the server, repeat the command line process. Get it running via command line first, then figure out what the totally useless errors mean. :-)
We won't get into how vulnerable the scripts from Matt's Archives are - M.S.A. is a good way to get your feet wet in perl. Eventually you'll want to switch to something else, or write your own. Just be aware that this mailer may give you more problems than it's worth.
Thanks again you guys for all your help.