Jump to content

Recommended Posts

Posted

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

Posted

:dance: Welcome to the Family hitop :dance:

 

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 :)

Posted

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.

 

:dance:

Posted

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.

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...