cgi-bin/formmail/formmail.cgi question

Hi so I created my own form so that customers can submit their orders directly from my website..problem is when I test it I get the 404 error message. I contacted tech support at 1&1 hosting but they simply told me to create the cgi-bin/formail file...I asked more questions but never got a reply so i'm looking for anyone who can help me by explaining or even providing me with the steps needed to get my form to work. Any help is appreciated i've done plenty of research but everything is so advanced. below is the code example of my form.

<html>
<head>
<title>Mailform</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="formmail" action="/cgi-bin/formmail/formmail.cgi" method="post">
<input type=hidden name="recipient" value="orders@limousinesnewyork.info">
Full Name:
<input type=text name="realname" size="45" value="">
Phone Number:
<input type=text name="realname" size="30" value="">

Date of service
<input type=text name="realname" size="30" value="">


Credit Card Number:
<input type=text name="realname" size="30" value="">


Security Code:
<input type=text name="realname" size="30" value="">


Email Address:
<input type=text name="email" size="45" value="">




Select Service
<select name="Vehicles">
<option value="Sedan">JFK/EWR to Manhattan</option>
<option value="Sedan">LGA to Manhattan</option>
<option value="Sedan"Manhattan to Airports>Manhattan to Airports</option>
<option value="Sedan">By the hour</option>



</select>



Enter your reservation details below.

We can provide amenities based on request

You will receive confirmation shortly

Include the type of vehicle you require:

Sedan, SUV, Limo, Super Limo, Bus
<textarea name="body" rows="10" cols="60" wrap="virtual"></textarea>


<input type="submit" value="Send Email"> <input type="reset" value="Reset Form">

</form>

macbook 2ghz, Mac OS X (10.4.10)

Posted on Oct 2, 2008 5:58 PM

Reply
3 replies

Oct 2, 2008 7:39 PM in response to arnaldo depaula

There are lots of things wrong with your form. You have several input fields with the same name, there are some elements that are not properly nested, your email is available in the hidden field. The form may still show and function but it will not validate under html 4.01 standards and if you were using php to send the form you would be passing multiple values of the same variable through the input name which may cause errors. Your site is unavailable are you sure you have cgi file uploaded on your server and do you have the correct path written in the form code?

don't use this thread as a guide. Read my post in this thread

Oct 2, 2008 8:09 PM in response to  Certified

All I did was upload the site to the my host, I can pull it up..I made a mistake on the web address its actually www.limousinesnewyorkcity.info you should be able to view it there..I have made a few changes since to the script but nothing works. Regarding the cgi file do I have to manually write one and how so..programs i have are (iweb08, taco html editor).

Oct 3, 2008 12:20 AM in response to arnaldo depaula

There is no point in uploading something to your server that has errors in it, which because of these errors will not work. Certified has pointed this out to you already.

It is probably better to use third party software to create your form. Go to somewhere such as http://www.bravenet.com or http://www.freedback.com. You can create whatever kind of form you want and when you have finished, just copy and paste the code into an html snippet and click on Apply and you have your form. I use Freedback, as it allows me to do everything that I want to do, such as forwarding people back to my sites Thank You page after the form has been submitted.

Look at the info Certified posted.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

cgi-bin/formmail/formmail.cgi question

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.