PDA

View Full Version : Permissions problem.


leroytrolley
10-14-2005, 12:47 PM
Hi people.

I'm having alot of problems with a peice of CGI mail form that I'm trying to use.

Everytime I click send I get a 405 error. I have been led to believe that it generally means I have a permission problem.

I've checked the permissions on the CGI-BIN folder they are 777, and the cgiform.cgi is set to 777.

Could anybody give me any other reasons why I get a 405 error. the for is here. http://www.models121.co.uk/htmlversion/beamodel.htm

Cheers.

Leroy

FishMonger
10-14-2005, 04:43 PM
It appears that you're on a Windows server using IIS. The most common cause of this error is that IIS is not configured to execute cgi scripts with the file extension you're using i.e., cgi instead of asp. Check with your web host to verify the extensions they allow. I'd also change the form action to a relative path instead of the full url this helps speed up the submission.

In addition, the scripts from bignosebird.com are very poorly written both in their coding style and security and most of them, including this one, have not been updated for years (5 years for this one). You really should consider switching over to a better script. The best I've seen, and most experienced Perl programmers agree, the nms FormMail script is the best.
http://nms-cgi.sourceforge.net/scripts.shtml