Using formmail Script

This script allows you to provide HTML forms in your pages for users to provide information, which will the be converted into e-mail format and sent to you. It is superior to using a mailto: in a form's ACTION in that the e-mail it sends will be formatted rather than raw data.

You can design the form according to your own preferences and desires, customizing it to gather the precise kinds of information you need, and only you will have access to the information that users provide through the form.

The script is "formmail.cgi" and is in the "cgi-bin" directory of our main computer

NOTE: You must be a registered account to use this script.

First, create a link on your web page to the page containing the form-to-mail form. Then create a page with the form to gather the information on it (an example is provided below). Finally, create a page that will indicate that the user's data has been received. As with a guestbook, your inputs can be any input as long as the naming convention of the script is followed.

Sample formmail:
<FORM method="POST" action="http://207.240.229.75/cgi-bin/formmail.cgi?http://www.domainname.com/gotopage.htm">
<input type=hidden name="recipient" value="email-id">
<input type=hidden name="subject" value="Customer Feedback">
<input type=hidden name="username" value="email-id">
<INPUT TYPE="TEXT" NAME="name" SIZE="20" MAXLENGTH="20"> Name
<INPUT TYPE="TEXT" NAME="email" SIZE="30" MAXLENGTH="30"> Email
<INPUT TYPE="TEXT" NAME="city" SIZE="20" MAXLENGTH="20"> City
<INPUT TYPE="TEXT" NAME="state" SIZE="20" MAXLENGTH="20"> State
<INPUT TYPE="TEXT" NAME="homephone" SIZE="20" MAXLENGTH="20"> Home Phone
<INPUT TYPE="SUBMIT" VALUE="Send Form"> <INPUT TYPE="RESET" VALUE="Reset">
</FORM>

Note the second and third lines - the HIDDEN inputs - these lines must appear in the HTML form: