Adding a form to your page which sends it's results to you via email:
We have installed Matt Wright's Formmail script to our servers. The full documentation for this formmail script, along with all its options, can be found at http://www.worldwidemart.com/scripts/formmail.shtml
Here's a quick-start to get your form up and running:
1. Add a form in your HTML file which has an "action" which points
to this script as follows:
<FORM METHOD="POST"
ACTION="http://www.ultratron.net/cgi-bin/uformmail.cgi">
2. Add a line in your HTML file inside the <form></form> tags similar
to this:
<input type=hidden name="recipient" value="email@your.host.com">
* Note: you must replace email@your.host.com with your own email address.
3. When someone visits your page, and fills out the form, you should receive email with the information they filled out on your form.
Below is an example of an HTML page containing a form using formmail. This form uses some of the options available with formmail, and shows the use of text boxes, radio buttons, check boxes, and pull down options.
<HTML><HEAD>
<TITLE>My Feedback Survey</TITLE>
</HEAD><BODY>
<H1>My Feedback Survey</H1>
<P>Use the <STRONG>Send</STRONG> button at the bottom of
the page to send your feedback to me via e-mail.
<HR>
<FORM METHOD="POST"
ACTION="http://www.ultratron.net/cgi-bin/uformmail.cgi">
<INPUT TYPE=hidden name="recipient" value="rnelson@virginia.edu">
<INPUT TYPE=hidden name="subject" value="Feedback Survey">
<INPUT TYPE=hidden name="sort" value="order:realname,email,Future,MIS,Finance,Marketing,Management,Accounting,Other,questions,practical,presents,prepared,enthusiasm,available,stimulates,STRENGTHS,WEAKNESSES,SUGGESTIONS">
<INPUT TYPE=hidden name="required" value="SUGGESTIONS">
<INPUT TYPE=hidden name="env_report" value="REMOTE_HOST,HTTP_USER_AGENT">
<P><STRONG>Name (optional): </STRONG><INPUT TYPE=text
name="realname"></P>
<P><STRONG>E-Mail Address (optional): </STRONG><INPUT TYPE=text
name="email"></P>
<P><STRONG>Where will you be this time next year? </STRONG>
<SELECT NAME="Future">
<OPTION>Consulting
<OPTION>Corporate MIS
<OPTION>Other Employment
<OPTION>Graduate School
<OPTION>Don't Know Yet
</SELECT>
<P>
<P><STRONG>Area(s) of concentation? (Select all that Apply): </STRONG><BR>
<INPUT TYPE="checkbox" NAME="MIS">MIS<BR>
<INPUT TYPE="checkbox" NAME="Finance">Finance<BR>
<INPUT TYPE="checkbox" NAME="Marketing">Marketing<BR>
<INPUT TYPE="checkbox" NAME="Management">Management<BR>
<INPUT TYPE="checkbox" NAME="Accounting">Accounting<BR>
<INPUT TYPE="checkbox" NAME="Other">Other<BR>
</P>
<P><STRONG>The instructor stimulates me to think about the course.</STRONG><BR>
<INPUT TYPE="radio" NAME="stimulates" VALUE="SA">Strongly
Agree
<INPUT TYPE="radio" NAME="stimulates" VALUE="A">Agree
<INPUT TYPE="radio" NAME="stimulates" VALUE="N">Neither
Agree Nor Disagree
<INPUT TYPE="radio" NAME="stimulates" VALUE="D">Disagree
<INPUT TYPE="radio" NAME="stimulates" VALUE="SD">Strongly
Disagree
</P>
<P>
<P><STRONG>Suggestions for improvement:</STRONG>
<BR>
<TEXTAREA ROWS=5 COLS=60 NAME="SUGGESTIONS"></TEXTAREA>
<BR>
<P><INPUT TYPE="SUBMIT" VALUE="Send">
<INPUT TYPE="RESET" VALUE="Clear Form"></P>
</FORM>
</BODY></HTML>
You can experiment with different options for use with formmail. See the documentation at http://www.worldwidemart.com/scripts/formmail.shtml for more details.