1<?php 2/* 3 * FCKeditor - The text editor for Internet - http://www.fckeditor.net 4 * Copyright (C) 2003-2007 Frederico Caldeira Knabben 5 * 6 * == BEGIN LICENSE == 7 * 8 * Licensed under the terms of any of the following licenses at your 9 * choice: 10 * 11 * - GNU General Public License Version 2 or later (the "GPL") 12 * http://www.gnu.org/licenses/gpl.html 13 * 14 * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") 15 * http://www.gnu.org/licenses/lgpl.html 16 * 17 * - Mozilla Public License Version 1.1 or later (the "MPL") 18 * http://www.mozilla.org/MPL/MPL-1.1.html 19 * 20 * == END LICENSE == 21 * 22 * This page lists the data posted by a form. 23 */ 24?> 25<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 26<html> 27 <head> 28 <title>FCKeditor - Samples - Posted Data</title> 29 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 30 <meta name="robots" content="noindex, nofollow"> 31 <link href="../sample.css" rel="stylesheet" type="text/css" /> 32 </head> 33 <body> 34 <h1>FCKeditor - Samples - Posted Data</h1> 35 This page lists all data posted by the form. 36 <hr> 37 <table width="100%" border="1" cellspacing="0" bordercolor="#999999"> 38 <tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999"> 39 <td nowrap>Field Name </td> 40 <td>Value</td> 41 </tr> 42<?php 43 44if ( isset( $_POST ) ) 45 $postArray = &$_POST ; // 4.1.0 or later, use $_POST 46else 47 $postArray = &$HTTP_POST_VARS ; // prior to 4.1.0, use HTTP_POST_VARS 48 49foreach ( $postArray as $sForm => $value ) 50{ 51 if ( get_magic_quotes_gpc() ) 52 $postedValue = htmlspecialchars( stripslashes( $value ) ) ; 53 else 54 $postedValue = htmlspecialchars( $value ) ; 55 56?> 57 <tr> 58 <td valign="top" nowrap><b><?=$sForm?></b></td> 59 <td width="100%" style="white-space:pre"><?=$postedValue?></td> 60 </tr> 61<?php 62} 63?> 64 </table> 65 </body> 66</html> 67