Rick Posted June 4, 2002 Share Posted June 4, 2002 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: Link to comment Share on other sites More sharing options...
babis Posted June 4, 2002 Share Posted June 4, 2002 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 haveAfter you get the script running, below is the html code for itHere 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> Link to comment Share on other sites More sharing options...
Rick Posted June 4, 2002 Author Share Posted June 4, 2002 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.shtmlBut 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: Link to comment Share on other sites More sharing options...
Reverend Posted June 4, 2002 Share Posted June 4, 2002 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> Link to comment Share on other sites More sharing options...
Rick Posted June 5, 2002 Author Share Posted June 5, 2002 I tried changing the code around like you and Babis and this is what I get:Internal Server ErrorThe 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 80It's getting on my nerves. Okay..one of you guys PM me so I can send you in to look at my code.Rick Link to comment Share on other sites More sharing options...
Blackwar Posted June 5, 2002 Share Posted June 5, 2002 try this one barnet Link to comment Share on other sites More sharing options...
Rick Posted June 5, 2002 Author Share Posted June 5, 2002 I have tried that code..support told me that it won't work on their server.RickProblem Solved...I forgot to put #! in the header in from of the path to Perl! Link to comment Share on other sites More sharing options...
Blackwar Posted June 5, 2002 Share Posted June 5, 2002 I have tried that code..support told me that it won't work on their server.RickProblem 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now