tutorials: html > form2mail
Creating a form on your website where people can submit
their responses to your email is relatively straight forward. This example
will demonstrate how to create a simple form on Evergreen's web
servers using the perl script Form2Mail. Below is a simple example of
a working form.
For
more details on working with Form2Mail see the network
services tutorial.
Start with the HTML for the page you'd like the form to reside in then include the following in the body of your document:
| These lines help us set up some of the hidden elements of our form. Make sure to add your evergreen email alias (the part before @evergreen.edu) | <FORM action="http://www.evergreen.edu/scripts/form2mail.pl" method="POST"> <INPUT type="hidden" name="recipient" value="yourevergreenalias"> <INPUT type="hidden" name="subject" value="form submission from my tutorial"> <INPUT type="hidden" name="required" value="firstname,lastname,email"> |
Please fill out the following form : |
<p>Please fill out the following form :</p> |