1234567
form = cgi.FieldStorage()if "name" not in form or "addr" not in form: print "<H1>Error</H1>" print "Please fill in the name and addr fields." returnprint "<p>name:", form["name"].valueprint "<p>addr:", form["addr"].value