2
* FCKeditor - The text editor for internet
3
* Copyright (C) 2003-2005 Frederico Caldeira Knabben
5
* Licensed under the terms of the GNU Lesser General Public License:
6
* http://www.opensource.org/licenses/lgpl-license.php
8
* For further information visit:
9
* http://www.fckeditor.net/
11
* "Support Open Source software. What about a donation today?"
13
* File Name: sampleposteddata.html
14
* This page lists the data posted by a form. It uses the URL (GET data),
15
* so it's limited to 2KB of data.
18
* Frederico Caldeira Knabben (fredck@fckeditor.net)
20
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
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" />
29
<h1>FCKeditor - Samples - Posted Data</h1>
30
This page lists all data posted by the form. It uses the "QueryString" to search for data
31
submitted using the "GET" method, so it is limited to 2KB.
33
<table width="100%" border="1" cellspacing="0" bordercolor="#999999">
34
<tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999">
38
<script type="text/javascript">
41
function HTMLEncode( text )
43
text = text.replace(/&/g, "&") ;
44
text = text.replace(/"/g, """) ;
45
text = text.replace(/</g, "<") ;
46
text = text.replace(/>/g, ">") ;
47
text = text.replace(/'/g, "'") ;
52
var aParams = document.location.search.substr(1).split('&') ;
54
for ( i = 0 ; i < aParams.length ; i++ )
56
var aParam = aParams[i].split('=') ;
57
var sParamName = aParam[0] ;
58
var sParamValue = aParam[1] ;
60
document.write( '<tr>' ) ;
61
document.write( '<td valign="top" nowrap><b>' + sParamName + '</b></td>' ) ;
62
document.write( '<td width="100%">' + HTMLEncode( unescape( sParamValue.replace( /\+/g, ' ' ) ) ) + '</td>' ) ;
63
document.write( '</tr>' ) ;