#!/usr/bin/python # -*- coding: utf-8 -*- import cgi form=cgi.FieldStorage() name=form.getfirst('name', 'empty') name=cgi.escape(name) print "Content-type: text/html" print print """
The submitted name as "%s"