Intermediate Web Publishing

An Extended Example

Here is an extended example using several kinds of form input:

<form method="POST" 
  action="http://www.uoregon.edu/cgi-bin/form-mail.pl?jqj@darkwing.uoregon.edu"
>
<p>From: <input name="email" size="33"> (Your Email Address)<br>
Name: <input name="realname" size="33"> (Your Real Name)<br>
CC self: <input type="checkbox" name="metoo"><br>
Subject: <input name="subject" size="50"><p>
<p>Text:<br>
<textarea name="content" rows="10" cols="60" WRAP="hard">
</textarea> </p>
<p>Select <input type="submit" value="send"> or 
<input type="reset" value="reset">
</form>

Let's try it out: http://darkwing.uoregon.edu/~jqj/jqj-mail.html

This particular CGI script is available for general UO use. It expects the following:


Here's a typical message as it is received:

From nobody@darkwing.uoregon.edu Wed Apr 19 12:55 PDT 1995
From: pres@whitehouse.gov (Bill Clinton)
To: jqj@darkwing.uoregon.edu
Subject: testing (Forms submission)
 
email:
pres@whitehouse.gov
----------------------------------------------------
subject:
testing
----------------------------------------------------
realname:
Bill Clinton
----------------------------------------------------
content:
This is the body of the message.
---------------------------------------------------- 


[up] [next]Exercise -- write a form using form-mail.pl