#!/usr/bin/pythonimport cgi, sys#Send errors to browsersys.stderr = sys.stdout#Parse data from formdata = cgi.FieldStorage()#Send response to browserprint "Content-type: text/htmln"print "<title>CGI Form Response</title>n"print "<h2>Current Quote</h2><P>"if data.has_key('name') and data.has_key('quote'): print "<B>%s</B>: %s" % (data['name'].value, data['quote'].value)
Name (required)
email (will not be published) (required)
Website