#!/usr/local/bin/pythonimport cgidef header(title): print "Content-type: text/htmln" print "<HTML>n<HEAD>n<TITLE>%s</TITLE>n</HEAD>n<BODY>n" % (title)def footer(): print "</BODY></HTML>"form = cgi.FieldStorage()formkeys = form.keys()formkeys.sort()header("")print '<UL>'for k in formkeys: print '<LI>' + k + ':' + form[k].value + '</LI>'print '</UL>'footer()
Name (required)
email (will not be published) (required)
Website