Website Domain Registration and Website Hosting - Host a Website Tonight
GoWebsite.com provides Domain Registration
Website Hosting, On-Line Shopping Carts,
Blog Hosting, Email Accounts, Security Certificates,
Merchant Accounts & other Website Products.
Free setup! Speak with us anytime: (480) 624-2500

Using the CGI Form-Mailer

To use the CGI form-mailer, create a Web form in HTML that links to the gdform.cgi script, located in the cgi directory of your hosting account.

Linux Grid Hosting accounts do not have access to the CGI form-mailer. These accounts must use webformmailer.php or gdform.php. See Using PHP Form Mailers for more information.

NOTE: This article applies to Linux Deluxe and Unlimited Shared Hosting accounts only.

The cgi directory of your hosting account is reserved for cgi scripts. Do not upload the HTML file that contains your Web form to the cgi directory.

Remember to specify the email address you want to use with the form-mailer in your account manager. For more information, see Specifying an Email Address for the CGI Form-Mailer.

To Use the CGI Form-Mailer

  1. Create your Web form and assign unique names to your form items.

    TIP: Our form-mailer script sorts the names of your form items alphabetically when it composes the email message. The order of precedence is: uppercase letters, lowercase letters, numbers.

  2. Type "/cgi/gdform.cgi" as the form action line. For example:
    <form action="/cgi/gdform.cgi" method="post">
  3. Type "post" as the form method.
  4. In addition to the fields you create in your form, the following fields must be included:
    • Subject — This field controls the subject line in the form email.
    • Redirect — This field controls the page that your visitors will see after they submit the form.
    • Email — This field controls the return address for the form email.

    Here's an example:

    <form action="/cgi/gdform.cgi" method="post">
    <input type="hidden" name="subject" value="Form Submission" />
    <input type="hidden" name="redirect" value="thankyou.html" />
    <p>First Name:<input type="text" name="FirstName" /></p>
    <p>Last Name:<input type="text" name="LastName" /></p>
    <p>E-Mail:<input type="text" name="email" /></p>
    <p>Comments:<textarea name="comments" cols="40" rows="10">
    Type comments here.</textarea></p>
    <input type="submit" name="submit" value="submit"/>
    </form>
  5. Save and upload your form to your hosting account.

If you are using a secondary domain name (Managing Your Hosting Account Domains), your redirect should point to:

./folder/thankyou.html

where /folder is the folder on your hosting account you use for the Website and thankyou.html is the file you want to redirect visitors to.

For information on reinstalling your default scripts, see Reinstalling the Default Scripts Directory on Linux Shared Hosting.

Domain Registration Domain Registration
Pay less for website domain names. Register your own .com, .net or .org for as low as $10.00 per year. (Plus ICANN fee of 18¢ per domain.) A free Email Account is included.
Website Hosting Website Tonight
For as little as $3.89 per month you can build your Website online with Website Tonight using our easy to use professional templates.
Play Video - Demo
Shopping Cart Software Quick Shopping Cart
Build and run your own successful online store in minutes! You're just five easy steps away!
Play Video
Website Hosting Website Hosting
Everything you need to give your Website the high-performance home it deserves!  Protect transactions and customer data with a
SSL Certificate