hitop Posted March 11, 2005 Posted March 11, 2005 Hi everyone. I'm trying to get an extremely simple contact form to work, but something isn't working. I keep getting a 500 Internal Server Error when I submit, then this line in the error log: Premature end of script headers: /home/pumpfir/public_html/cgi-bin/dodosmail.php It's being called from http://www.pumpfirst.com/contact.html Now, this could be something very simple, I really don't know my way around CGI and forms at all. But any help would be greatly appreciated. Thank you! Joshua Quote
TCH-RobertM Posted March 11, 2005 Posted March 11, 2005 hello hitop make sure the permissions of the cgi file are 755 that should help ps welcome to the forums Quote
TCH-Don Posted March 11, 2005 Posted March 11, 2005 Welcome to the Family hitop and your new home! Did you remove the # on the second line of dodosmail.php and change the address to yours? Thats all you should have to do to get it to work try uploading their test.html (sample form) to see if it works. Also I would move it out from the cgi-bin folder so you do not have to change permissions. just try uploading dodosmail.php and test.html to a new folder and try the sample form (test.html). and go from there. We really are like family here. So if you need anything, just ask your new family! We love to help Quote
hitop Posted March 11, 2005 Author Posted March 11, 2005 Thanks for the welcome everyone! I've been with TCH for a while now and recommend it anytime webhosting comes up. :-) At any rate, permissions are set properly, and the file has been edited properly. Still no luck. I tried Ultimate Form Mailer as well and had the same problem. Quote
TCH-Don Posted March 11, 2005 Posted March 11, 2005 Did you try the two original files in a different folder after just editing the second line in dodsmail.php? There is not much else to do and it should work with the test.html file in the same folder. Quote
hitop Posted March 11, 2005 Author Posted March 11, 2005 Well, it looks like it has to do with the directory I guess. Once I copied the script out into my root directory (where my contact page is kept), it worked fine. But any time I try to access anything in the cgi-bin directory I get the 500 error. Quote
TCH-Don Posted March 11, 2005 Posted March 11, 2005 Thanks for the update, glad you have it working Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.