1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
* FCKeditor - The text editor for internet
4
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
6
* Licensed under the terms of the GNU Lesser General Public License:
7
* http://www.opensource.org/licenses/lgpl-license.php
9
* For further information visit:
10
* http://www.fckeditor.net/
12
* "Support Open Source software. What about a donation today?"
14
* File Name: sampleposteddata.html
15
* This page lists the data posted by a form. It uses the URL (GET data),
16
* so it's limited to 2KB of data.
19
* Frederico Caldeira Knabben (fredck@fckeditor.net)
21
<html xmlns="http://www.w3.org/1999/xhtml">
23
<title>FCKeditor - Samples - Posted Data</title>
24
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
25
<meta name="robots" content="noindex, nofollow" />
26
<link href="../sample.css" rel="stylesheet" type="text/css" />
30
FCKeditor - Samples - Posted Data
33
This page lists all data posted by the form. It uses the "QueryString" to search
34
for data submitted using the "GET" method, so it is limited to 2KB.
37
<table width="100%" border="1" cellpadding="3" style="border-color: #999999; border-collapse: collapse;">
38
<tr style="font-weight: bold; color: #dddddd; background-color: #999999">
39
<td style="white-space: nowrap;">
44
<script type="text/javascript">
47
function HTMLEncode( text )
49
text = text.replace(/&/g, "&") ;
50
text = text.replace(/"/g, """) ;
51
text = text.replace(/</g, "<") ;
52
text = text.replace(/>/g, ">") ;
53
text = text.replace(/'/g, "'") ;
58
var aParams = document.location.search.substr(1).split('&') ;
60
for ( i = 0 ; i < aParams.length ; i++ )
62
var aParam = aParams[i].split('=') ;
63
var sParamName = aParam[0] ;
64
var sParamValue = aParam[1] ;
66
document.write( '<tr>' ) ;
67
document.write( '<td valign="top" style="white-space: nowrap;">' + sParamName + '</td>' ) ;
68
document.write( '<td style="width: 100%;"><pre>' + HTMLEncode( unescape( sParamValue.replace( /\+/g, ' ' ) ) ) + '</pre></td>' ) ;
69
document.write( '</tr>' ) ;