DCN Web Tools: mailformDCN has a general purpose form response program that allows DCN users to use HTML forms in their web pages and have form responses emailed to their DCN mail account. The program automatically decodes form input from CGI post format and organizes the responses by field. It can also check for empty fields and automatically display a specified web page when form submission is complete.If you generally know how to use forms, you may use the mailform script by constructing your HTML form command like this: <FORM METHOD="POST" ACTION="http://www.dcn.davis.ca.us/cgi-bin/mailform"> And putting one or more special fields into your HTML form. They may be HIDDEN if you don't need the user to fill them in. They are as follows:
<HTML> <HEAD> <TITLE>Sample mailform Feedback Page</TITLE> </HEAD> <BODY> <H1>Please use this Form to send Feedback and Suggestions</H1> <HR> <FORM METHOD="POST" ACTION="http://www.dcn.davis.ca.us/cgi-bin/mailform"> <INPUT TYPE="HIDDEN" NAME="TO" VALUE="msmosaic@dcn.org"> <INPUT TYPE="HIDDEN" NAME="NEXT-PAGE" VALUE="/~steve/thanks.html"> <INPUT TYPE="HIDDEN" NAME="REQUIRE-REPLY"> <!-- INPUT TYPE="HIDDEN" NAME="CHECK-EMPTY" --> Enter Your Name Here: <INPUT NAME="X-NAME" SIZE="40"> <P>Enter Your E-mail Address Here: <INPUT NAME="REPLY-TO" SIZE="40"> <P>Enter the Subject Line Here: <INPUT NAME="SUBJECT" VALUE="WWW Feedback" SIZE="40"> <P><P>Message: <P> <TEXTAREA NAME="CONTENT" ROWS=10 COLS=40 WRAP=VIRTUAL> </TEXTAREA> <P> <INPUT TYPE="SUBMIT" VALUE="Submit Your Comments"> <INPUT TYPE="RESET" VALUE="Reset All Fields"> </FORM> <HR> </BODY> </HTML> |