Form Mail Instructions

Note: Just added a new feature, writing to a file also: Click here for information on writing a file also.

Note: I just added a new feature, uploading files and emailing them, gif, jpeg, MSword, MSExcel, etc. Click here for information on UPLOADING FILES

This program was written by Kirk Moore for CU Colorado Springs Information Technology in Oct 2000. The program takes a form and emails the values to a users email account. The program is simple but some knowledge of HTML would be helpful.
The program uses fields which tells it what to do. Here is a list of field names:
Field names, the program is using the following format for field names:

That is about all, just create a web page with a form inside which will contain the following information:

FORM STARTS HERE:
<FORM METHOD="POST" NAME="formmail" ACTION="/cgi-formmail/fm.pl">
Do not change this line unless you know what you are doing.

<input type=hidden name="To:_" value="address_to_send@some.domain">
<input type=hidden name="Subject:_" value="Place the subject line which you want to see when you receive the email message">
<input type=hidden name="_thanksurl" value="/~formmail/thanks.html">
<input type=hidden name="_confirm" value="yes">
Value can be yes, no or leave out this line. Setting the value to yes makes the program send back a confirm page telling the user to make sure their info is correct.
<input type=hidden name="_confirm_header" value="<head><title> Confirm Information </title<>/head<>body<>center<>h2>Place in text that you want the user to see about the confirm page before the values are displayed.</h2>">
Place in the information that the user will see when the page is display back to them. Use HTML codes, the header will go first then the values then the footer.
<input type=hidden name="_confirm_footer" value="Place in text for the footer here</center></body>"> Place in text that you want the user to see after the values have been displayed.
Email name of user: <input type=text name="From:">
If the program finds the field From: it will replace the from with the email address instead of the mail coming from "anonymous NFS user"
Your fields:
Your field names can contain spaces, just make sure they are inside of quotes "".
Your text for field1 <input type=text name="field1">
Your text for field number 2<input type=text name="field number 2">
Your text for field # 3: <input type=text name="field # 3">
Submit and Reset Buttons
<INPUT TYPE="submit" NAME="BUTTON" VALUE="Send Form">
<INPUT TYPE="reset" VALUE="Reset" Form"> </FORM>

That's it.

You can try it out using this form to see how it works:

Send information to:
This input field should be of type hidden and the value containing the address where to email the form. But for now it is not hidden so that many users can try it out.
Name:
Address:
City, State Zip Code
Email name: To have this field work you must name it "from:"
Hope this works
This program written by Kirk Moore for CU Colorado Springs Information Technology