#!/usr/bin/python ################################################################## # run test5 logic with formMockup instead of cgi.FieldStorage() # to test: python test5_mockup.cgi > temp.html, and open temp.html ################################################################## from formMockup import formMockup form = formMockup(name='Bob', shoesize='Small', language=['Python', 'C++', 'HTML'], comment='ni, Ni, NI') # rest same as original, less form assignment import cgi, sys, string print "Content-type: text/html" # plus blank line html = """
%(comment)s