How to Create a Page to use the Generic Form Script

1. Any page which uses the generic form will require the following lines in the body of the html page :

<FORM METHOD="POST" ACTION="http://www.emunix.emich.edu/cgi-bin/generic_form.cgi">
<INPUT TYPE="hidden" NAME="recipient" VALUE="someone@some.emich.edu"><P>
<INPUT TYPE="hidden" NAME="subject" VALUE="form1.html test"><P>
<CENTER>
Reply-to: <INPUT TYPE ="text" NAME="username" SIZE = 40><P>
</CENTER>
<CENTER>
Your name: <INPUT TYPE ="text" NAME="realname" SIZE = 40><P>
</CENTER>

Where the VALUE for recipient should be your email address

Where the VALUE for subject should be the subject of the mail to be sent to the recipient.

Where the VALUE for username will be filled in by the user, and contain the users return email address.

Where the VALUE for realname will be filled in by the user, and contain the users real name.

2) In between you need to put one or more of the following type of input directives:

<CENTER>comments:</CENTER><P>
<CENTER><TEXTAREA NAME="comments" Rows=8 COLS=50>
</TEXTAREA></CENTER>

3) It should then have the next lines somewhere before the end of the body html tag :

<CENTER><INPUT TYPE="submit" VALUE="Send Request">
<INPUT TYPE="reset" VALUE="Clear Form"></CENTER>
</FORM>

It will send mail to the recipient which lists all of the input directive NAME's in alphabetical order with the user supplied input associated with them.

You can download either of the example pages to get an idea of how a whole page would look.


last updated 28 August 2000
Mr. Information: info@emunix.emich.edu
Just who is Mr. Info anyway? The world may never know...