4
FCKeditor - The text editor for Internet - http://www.fckeditor.net
5
Copyright (C) 2003-2007 Frederico Caldeira Knabben
9
Licensed under the terms of any of the following licenses at your
12
- GNU General Public License Version 2 or later (the "GPL")
13
http://www.gnu.org/licenses/gpl.html
15
- GNU Lesser General Public License Version 2.1 or later (the "LGPL")
16
http://www.gnu.org/licenses/lgpl.html
18
- Mozilla Public License Version 1.1 or later (the "MPL")
19
http://www.mozilla.org/MPL/MPL-1.1.html
23
This page lists the data posted by a form.
29
# Tell the browser to render html
30
print "Content-Type: text/html"
35
form = cgi.FieldStorage()
40
print """<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
43
<title>FCKeditor - Samples - Posted Data</title>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
45
<meta name="robots" content="noindex, nofollow">
46
<link href="../sample.css" rel="stylesheet" type="text/css" />
51
# This is the real work
53
<h1>FCKeditor - Samples - Posted Data</h1>
54
This page lists all data posted by the form.
56
<table width="100%" border="1" cellspacing="0" bordercolor="#999999">
57
<tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
58
<td nowrap>Field Name </td>
62
for key in form.keys():
64
value = form[key].value
67
<td valign="top" nowrap><b>%s</b></td>
68
<td width="100%%">%s</td>
75
# For testing your environments
77
for key in os.environ.keys():
78
print "%s: %s<br>" % (key, os.environ.get(key, ""))