#!/usr/bin/python

import cgi

data = cgi.FieldStorage()

words = data.getfirst('words') # equivalent of PERL param

response = \
"""Content-type: text/html

<html>
<head>
<title>Simple Form Response</title>
</head>
<body>
<h1>Thanks for your input.</h1>
<p>We appreicate your taking the time to say: %s</p>
<p>Our representative will be in touch</p>
</body>
</html>""" % words

print response

