#!/usr/local/bin/python
import cgi
def header(title):
print "Content-type: text/html\n"
print "%s " % (title)
def footer():
print ""
form = cgi.FieldStorage()
formkeys = form.keys()
formkeys.sort()
header("Show form fields")
print ''
for k in formkeys:
print '- ' + k + ':' + form[k].value + '
'
print '
'
footer()