Cutting edge custom programming and quality Web hosting since 1994

Form to E-mail

VPOP has made it easy to use our "form to e-mail" script. Just "Cut n Paste" the following lines into the page where your form lives. You'll want these lines to appear at the beginning of your form.

      <FORM METHOD=post ACTION="/cgi-bin/vpopmail.cgi">

      <input type="hidden" name="recipient"

      <input type="hidden" name="subject" 
      value="subject in your e-mail">

      <input type="hidden" name="redirect"

Or try our Sample Form Generator

For details on which portions to edit, how to make a complete form or how to use your form with the secure server, just follow the instructions located in the areas below.

Form to E-mail Cont'd

Below is an explaination of what each line does and which portions to edit. Do not include the numbers in your form.

  1.    <FORM METHOD=post ACTION="/cgi-bin/vpopmail.cgi">

  2.    <input type="hidden" name="recipient"

  3.    <input type="hidden" name="subject" 
        value="subject in your e-mail">

  4.    <input type="hidden" name="redirect"
        your response.html">

  1. This section calls the cgi script from our root cgi-bin and does not need to be edited at all.
  2. This section tells the script where to send the results of the form. You need only replace "" with the e-mail address of the person you want to receive the data.
  3. This section will determine what appears in the Subject line of the e-mail you receive. This is great for identifying a specific type of order if you have more than one form on your site. Just edit the portion that says "subject in your e-mail" and replace it with your preferred subject line.
  4. This part of the form allows you to display a new page once your customer has hit the "submit" button. Most will display a page that says something like, "Thanks for the order" or maybe include further instructions.

Advance Features

In this section we will explain how to use some of the adavnced features. Each line below can be added to the three above for more control over the use of your form.

  1.    <input type="hidden" name="sort"

  2.    <input type="hidden" name="required" 

  3.    <input type="hidden" name="redirect"
        your response.html">

  1. Use this option if you want the data from the form to be sent to you in a particular sequence. Simply replace the items labled "field1,field2,etc" with the names from your form fields. Be sure to separate the names with a comma and no spaces.
  2. This option is used to make sure that certain fields in your form are completed. If you have a field marked as "required" and the end user leaves it empty, the form will be bounced and the user prompted to fill complete the necessary fields. Again, just edit the area that says, "field1,field2,etc".
  3. Secure Forms are best used with this option. Whenever you leave a secure area, a note will pop up to the user and remind you that an unsecure area is ahead. If you used a secure link to get to the order form, you'll want to use this section. Just edit the area described as ~your_account and replace it with your login I.D. You'll also want to edit the name of the file that is returned.

Different Form Fields
In this section we will discuss the different types of form fields that are commonly used. Again, just "Cut n Paste" the source provided, into your Web page.

Text Box:
Syntax: <INPUT TYPE="text" NAME="whatever" VALUE=" " SIZE=25>

Text Area:
Syntax: <TEXTAREA  ROWS=5 COLS=40 SIZE="100" ALIGN=left
               name="special instructions"> </TEXTAREA>

Drop-down Box:
Syntax: <SELECT NAME="prem stock">

 <OPTION VALUE="default">Paper stock
 <OPTION VALUE="bright white linen">Bright White Linen 
 <OPTION VALUE="soft white linen">Soft White Linen 
 <OPTION VALUE="light grey linen">Light Grey Linen
 <OPTION VALUE="ivory plate">Ivory Plate
 <OPTION VALUE="glossy white">Glossy White

Submit & Reset Buttons: ******
Syntax: <INPUT TYPE="submit" VALUE="Submit Form">
        <INPUT TYPE="reset" VALUE="Reset Form">