Skyscraper
CS 1371 Lab 2 - HTML

Mailforms

What is a mailform?

Once you have your site set up, it would be nice to see who has been visiting your site. The easiest way of doing this is to create a Mailform (you should put the mailform in a separate .html file from your index page). When a visitor fills out a mailform on your page, the web server will email you a copy of the information that the visitor submitted.

Since many of the header tags for your mailform must be done in a precise manner in order for the server to process them, the necessary items will be provided below.

<form method="post" action="/cgi-bin/mailform">
    <!-- Form header and Send-To Information --> 

    <input type="hidden" name="mform-email" value="gtxXXXx@prism.gatech.edu" />

    <input type="hidden" name="mform-subject" value="Test Data" /> 

    <input type="hidden" name="mform-response" 

      value="http://www.prism.gatech.edu/~gtxXXXx/thankyou.html" />

    <input type="hidden" name="mform-encoding" value="text" />
	
</form>

The page that comes up once the form is submitted should be either your index.html page or a thankyou.html page that thanks the visitor for filling out your form. Remember, you must have at least 4 different kinds of inputs, not just 4 inputs.

You might also be interested in the Mailform Template, and you can read more about the different form elements here.