Home - Help & Support - Contact Us
    

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.

NOTE: The cgi directory of your hosting account is reserved for cgi scripts. Do not upload the HTML file that contains your Web form into 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 as normal and assign unique names to your form items.

    NOTE: Keep in mind that our form-mailer script will sort the names of your form items alphabetically when it composes the email message. This is the order of precedence: uppercase letters, lowercase letters, numbers.

  2. For the form action line, enter /cgi/gdform.cgi. For example:
    <form action="/cgi/gdform.cgi" method="post">
  3. Set the form method to "post."
  4. In addtion to the fields you create in your form, there are three special fields that you use: subject, redirect, and email.

    Subject. Controls the subject line in the form email.

    Redirect. Controls the page that your visitors will see after they submit the form.

    Email. Controls the return address for the form email.

    For 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.
Rated:NR/0 Votes
373 Views
More Articles From CGI
More Articles From CGI
Print Article
Print
Share |
Comments, Questions & Reviews

Comments is currently disabled for this article!
Related Articles and Readings
Using the ASP Form Mailer
To use the ASP form-mailer, create a Web form in HTML that links to our ASP script and upload it ...
Forms in HTML
Forms allow you to add interactivity to your web documents by way of the <FORM> tag. With the form tag ...
Hidden fields in HTML
Yet another type of input in html is HIDDEN input. <INPUT TYPE=HIDDEN NAME="FORMNAME" VALUE="Company Position Form 1"> A HIDDEN input is a ...
Working with Template Using HTML Editor and Changing Text in HTML Editor
xWeb design template is useless without content, so first of all you should add own text there. Changing text in ...
How to add text to images?
You will need some type of graphics editing software such as Jasc Paint Shop Pro, Adobe PhotoShop, Ulead PhotoImpact, etc. ...
The information provided in this article is for general information and/or the comments is the sole responsibility of their respective authors and does not necessarily reflect the opinion of zeronese.net does not endorse any article and/or comments published by our web users unless otherwise noted.