Simple CGI Script import cgi RESPONSE="""Content-type: text/html %s

 %s
""" form = cgi.FieldStorage() content = [] for name in form.keys(): content.append("Name: %s value: %s" % (name, form[name].value)) content.append("Done") print RESPONSE %("Form Echo", "\n".join(content))