#!c:\Python\python.exe
import cgi
def printHeader( title ):
print """Content-type: text/html
%s
""" % title
printHeader( "Using cgi.FieldStorage with forms" )
print """Enter one of your favorite words here:
"""
pairs = cgi.parse()
if pairs.has_key( "word" ):
print """Your word is:
%s """ % cgi.escape( pairs[ "word" ][ 0 ] )
print ""