#!/usr/bin/env python """ FCKeditor - The text editor for internet Copyright (C) 2003-2006 Frederico Caldeira Knabben Licensed under the terms of the GNU Lesser General Public License: http://www.opensource.org/licenses/lgpl-license.php For further information visit: http://www.fckeditor.net/ "Support Open Source software. What about a donation today?" File Name: sampleposteddata.py This page lists the data posted by a form. File Authors: Andrew Liu (andrew@liuholdings.com) """ import cgi import os # Tell the browser to render html print "Content-Type: text/html" print "" try: # Create a cgi object form = cgi.FieldStorage() except Exception, e: print e # Document header print """ FCKeditor - Samples - Posted Data """ # This is the real work print """

FCKeditor - Samples - Posted Data

This page lists all data posted by the form.
""" for key in form.keys(): try: value = form[key].value print """ """ % (key, value) except Exception, e: print e print "
Field Name   Value
%s %s
" # For testing your environments print "
" for key in os.environ.keys(): print "%s: %s
" % (key, os.environ.get(key, "")) print "
" # Document footer print """ """