#!/usr/bin/python

import cgi
form = cgi.FieldStorage()

print """Content-type: text/html

<!doctype html public "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">

<html>
<head>
<title>
template title
</title>
<meta name="Author" content="Dave Pape">
</head>

<body>
<h1>
Template
</h1>

<p>
"""

print "parsed form\n"
if not form.has_key('data1'):
        print "no data1"
else:
	print form['data1'].value
print "done\n"

print """</p>

<p></p><hr>
<div>
Last modified 1 October 2000.
</div>
<address>
<a href="/pape/">Dave Pape</a>, <a href="mailto:pape@evl.uic.edu">pape@evl.uic.edu</a>
</address>

</body>
</html>
"""
