1 #!/usr/local/bin/python
3 """CGI test 2 - basic use of cgi module."""
5 import cgitb
; cgitb
.enable()
10 form
= cgi
.FieldStorage()
11 print "Content-type: text/html"
14 print "<h1>No Form Keys</h1>"
16 print "<h1>Form Keys</h1>"
17 for key
in form
.keys():
18 value
= form
[key
].value
19 print "<p>", cgi
.escape(key
), ":", cgi
.escape(value
)
21 if __name__
== "__main__":