BC Logo
  .    BCINFO    .    Personal Web Server    .   Phone/Email Directory    .   Find BC   .    Agora    .
. BCINFO / Web Master's Corner  
Search
 
  BCINFO
. Web Operations
    Welcome
    Visitor Status
    Search Engine
    CGI
  --Counter Example
  --Contact Form Example
    FTP
    Development Tools
  IT
  WWW
 
 
  

Webmaster's Corner

  
 

CGI - Contact Form

Below is an example of a form you might want on your website. The perl script "formmail.cgi" has already been created. So anyone with an account on the BC web server can use this form without having to program in perl. After the information is entered in the fields and the "send form" button is pressed, the data will be sent to you at the email address you specified in the html code.

The order of the fields does not matter nor does its design.

To better understand how to create your own form, view the color coded source code here.

Example follows:


Enter descriptive body text here, describing why an individual might be filling out this form, etc. This form is basically designed to allow some limited textual feedback, or to request a basic information packet, to be sent either by ground or electronic mail.

Please enter the requested information:

Name:

Street Address:

City: State: Postal Code:

Country:

Phone Number:

Electronic Mail Address:

Random Variable 1 (you can edit this text):

Random Variable 2 (you can edit this text):

Random Variable 2 (you can edit this text):

Text for a Yes/No Type Question?
Yes No

A text comments box:

Some more textual comments?:

Random Radio Button (edit the "value#" in both places so they match):
Value 1 Value 2 Value 3 Value 4 Value 5 Value 6

Menu Pick List: edit the "value#" in both places so they match

Send or Form Reset buttons.


Enter any Follow Up Text here.

 

  
   [ Contact : Technical Credits : Top of Page ]
This version: http://www.bc.edu/webops/form.html
Copyright © 1997-2000 The Trustees of Boston College.