Printer-friendly versionSend by email

Specs for the Nature Writing Assignments:

Natural History Journal Entry
Nature Writing Made Into Blank Verse

Sound:

<p align="left">Listen to
Crickets
<embed src="nature014.wav" width="140" height="32" autostart="false"></embed>

or birds
<embed src="nature015.wav" width="140" height="32" autostart="false"> </embed>while
you work. </p>

Form for submitting assignments online:

If you go to these assignments and click on "View," "Source," you will see that a "form" has been used with cgi-bin (you would alter the form action depending upon whether your server is set up to use cgi-bin):

<form action="/cgi-bin/fdh" method="post" enctype="multipart/form-data" name="Assignment1" target="_blank" id="Assignment1">
<p>Your Name:
<input name="StudentName" type="text" id="StudentName" size="40" maxlength="60">
</p>
<p>Your Page of Natural Description: </p>
<p>
<textarea name="StudentAssignment" cols="90" rows="250" wrap="VIRTUAL" id="StudentAssignment">[Cut and paste from a Word Document into this area; make sure to spell-check and proofread beforehand.]</textarea>
</p>
<table width="50%" border="0" align="center" cellpadding="10" cellspacing="10">
<tr>
<td><div align="center">
Submit:
<input type="submit" name="to" value="mandellc@muohio.edu">
</div></td>
<td><div align="center">
<input type="reset" name="Reset" value="Reset">
</div></td>
</tr>
</table>
<p>&nbsp; </p>
<input type="hidden" name="resulturl" value="http://www.orgs.muohio.edu/anthologies/IN/assignment.html">
</form>

The content typed in by students will be emailed to me, and the email I receive looks like this:

From: fdh@muohio.edu
X-http_referer: http://www.orgs.muohio.edu/anthologies/IN/naturewriting.html
Subject:
Retries: 3
Delay: 10
Date: Tue, 4 Jan 2005 20:57 -0500
To: mandellc@muohio.edu

Form data:


to = mandellc@muohio.edu

StudentName = [Student]

StudentAssignment = [Student's Assignment Here]

However, if you don't have cgi-bin functions, and, if you wish to make each student's response into a permanent web page, you could write the following:

<form name="form1" method="post" action="action.php">
<p>Your Name:
<input name="name" type="text" size="15"></p>
<textarea name="textarea" cols="75" rows="30">[Cut and paste from a Word Document into this area; make sure to spell-check and proofread beforehand.]</textarea>
<p align="center">
<input type="submit" name="Submit" value="Submit">
</p>
</form>

and then write an "action.php" action script that looks something like this:

<?php
$file = $_POST['name'].".htm";
$handle = fopen($file, "w+");
fputs($handle, "
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">
<html>
<head><title>Nature Writing Journal </title></head>
<body>
<h3>Nature Writing Journal </h3>
<p>by $name</p>
<p>$textarea</p>
</body>
</html>
");
fclose($handle);
print "
<html>
<body>
<p>You have created a Web page: see <a href=\"$name.htm\">$name.htm</a>
</p></body></html>";
?>

Assignments written by Walter Reed;
code and design by Laura Mandell

Published @ RC

December 2004