4
FCKeditor - The text editor for internet
5
Copyright (C) 2003-2005 Frederico Caldeira Knabben
7
Licensed under the terms of the GNU Lesser General Public License:
8
http://www.opensource.org/licenses/lgpl-license.php
10
For further information visit:
11
http://www.fckeditor.net/
13
"Support Open Source software. What about a donation today?"
15
File Name: sampleposteddata.py
16
This page lists the data posted by a form.
19
Andrew Liu (andrew@liuholdings.com)
25
# Tell the browser to render html
26
print "Content-Type: text/html"
31
form = cgi.FieldStorage()
36
print """<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
39
<title>FCKeditor - Samples - Posted Data</title>
40
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
41
<meta name="robots" content="noindex, nofollow">
42
<link href="../sample.css" rel="stylesheet" type="text/css" />
47
# This is the real work
49
<h1>FCKeditor - Samples - Posted Data</h1>
50
This page lists all data posted by the form.
52
<table width="100%" border="1" cellspacing="0" bordercolor="#999999">
53
<tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
54
<td nowrap>Field Name </td>
58
for key in form.keys():
60
value = form[key].value
63
<td valign="top" nowrap><b>%s</b></td>
64
<td width="100%%">%s</td>
71
# For testing your environments
73
for key in os.environ.keys():
74
print "%s: %s<br>" % (key, os.environ.get(key, ""))