Jump to content

Recommended Posts

Posted

Hi

I'm trying to add a very basic and simple email form to a site and for some reason I'm getting the 500 Internal Server Error.

 

I've followed the step by step instructions here http://web.mit.edu/wwwdev/cgiemail/user.html , created my email template, but I still can't get it to work!

 

I have my emailform.txt located in the /public_html directory but have also tried it in other directories /cgi-bin (and others) changing the action each time, with no luck. (I've also used the fill link in my form action="http://www.mysite.com/cgi-bin/cgiecho/emailform.txt")

 

Can someone point me in the right direction?

 

Here's my form:

<form method="post" action="/cgi-bin/cgiecho/emailform.txt" enctype="text/plain">

 

Email address: <input type="text" name="email" size="30" maxlength="75" style ="font-size: 10; background-color: #CCCCCC; border: 1px solid #666666;">

 

<input name="Submit" type="submit" value="Submit" class="buttons" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #000; background-color: #FFCCFF; " />

</form>

 

Thanks

MK

Posted

Hi MK, first of all cgi scripts end in .cgi or .pl and not .txt so that is the first problem.

 

The other problem is the files must be uploaded as text files (ASCII) and their permissions must be changed to executable. Normally 755.

 

Another thing is cgiemail has been disabled on the TCH servers because it was easy for spammers to abuse that script.

 

You are going to have to find another form to email processing script to use.

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...