Jump to content

Recommended Posts

Posted

Hey...I have set up with a new host and I am having a darn hard time getting a form mail cgi script to run. Can somebody help me out here?

Rick:cool:


Posted

when you are talking about cgi form mail......(are you talking about installing the actuall files, or using them within a site?)

well.. I used the one that is pertty much the standard.. it's from Matt's script Archive (http://www.scriptarchive.com/formmail.html)

it was already installed on both the webspace providers I have

After you get the script running, below is the html code for it

Here is a sample code:

<form action="/cgi/formmail" method = "POST"> location of script[/color:59a3cf9c8f]

<input type = "hidden" name = "recipient" value = "babis@nodomain.com"> email location, it sends back to your email addy[/color:59a3cf9c8f]

<b>If you have any Questions?Comments? Enter them below and click submit</b>

<textarea name="textfield" rows="6" cols="35"></textarea>

<input type="submit" name="Submit" value="Submit">

</form>

Posted

Hey...whoever created this section...thanks! Anyway, Babis, I was trying to use that one to and could not get it to work. I wrote to my host and they told me to use this one: http://www.bignosebird.com/carchive/bnbform.shtml

But I have put that thing on and fooled around with it all over the place and get budge! Anyway, if you want to take a look at the code I have or whatever, just PM or IM me.

Rick:cool:

Posted

Here's one slightly different to Babis's you could try.

Replace the relevant url values with the correct ones;

<FORM ACTION="http://www.USERNAME.com/cgi-bin/formmail.cgi" METHOD="POST">

<INPUT type=hidden name="recipient" value="office@USERNAME.com">

<INPUT type=hidden name="subject" value="An inquiry for you">

<INPUT type=hidden name="redirect" value="http://www.USERNAME.com/">

Your name: <INPUT TYPE="text" NAME="name" SIZE="20" MAXLENGTH="50" VALUE="">

<BR>

Your email: <INPUT TYPE="text" NAME="email" SIZE="20" MAXLENGTH="50" VALUE="">

<BR>

Your inquiry: <TEXTAREA NAME="Inquiry" ROWS="6" COLS="25">

</TEXTAREA>

<BR>

<INPUT TYPE="submit" VALUE="Submit">

<INPUT TYPE="Reset" VALUE="Clear">

</FORM>

Posted

I tried changing the code around like you and Babis and this is what I get:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, barnettrp@knology.net 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.

--------------------------------------------------------------------------------

Apache/1.3.19 Server at www.clevelyouth.com Port 80

It's getting on my nerves. Okay..one of you guys PM me so I can send you in to look at my code.

Rick

Posted

I have tried that code..support told me that it won't work on their server.

Rick

Problem Solved...I forgot to put #! in the header in from of the path to Perl!

Posted
I have tried that code..support told me that it won't work on their server.

Rick

Problem Solved...I forgot to put #! in the header in from of the path to Perl!  

how ironic the simplest mistakes cause the biggest problems :rolleyes

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...