[1575] | 1 | <?php
|
---|
| 2 | /*
|
---|
| 3 | * FCKeditor - The text editor for Internet - http://www.fckeditor.net
|
---|
| 4 | * Copyright (C) 2003-2009 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 border="1" cellspacing="0" id="outputSample">
|
---|
| 38 | <colgroup><col width="80"><col></colgroup>
|
---|
| 39 | <thead>
|
---|
| 40 | <tr>
|
---|
| 41 | <th>Field Name</th>
|
---|
| 42 | <th>Value</th>
|
---|
| 43 | </tr>
|
---|
| 44 | </thead>
|
---|
| 45 | <?php
|
---|
| 46 |
|
---|
| 47 | if ( isset( $_POST ) )
|
---|
| 48 | $postArray = &$_POST ; // 4.1.0 or later, use $_POST
|
---|
| 49 | else
|
---|
| 50 | $postArray = &$HTTP_POST_VARS ; // prior to 4.1.0, use HTTP_POST_VARS
|
---|
| 51 |
|
---|
| 52 | foreach ( $postArray as $sForm => $value )
|
---|
| 53 | {
|
---|
| 54 | if ( get_magic_quotes_gpc() )
|
---|
| 55 | $postedValue = htmlspecialchars( stripslashes( $value ) ) ;
|
---|
| 56 | else
|
---|
| 57 | $postedValue = htmlspecialchars( $value ) ;
|
---|
| 58 |
|
---|
| 59 | ?>
|
---|
| 60 | <tr>
|
---|
| 61 | <th><?php echo htmlspecialchars($sForm) ?></th>
|
---|
| 62 | <td><pre><?php echo $postedValue?></pre></td>
|
---|
| 63 | </tr>
|
---|
| 64 | <?php
|
---|
| 65 | }
|
---|
| 66 | ?>
|
---|
| 67 | </table>
|
---|
| 68 | </body>
|
---|
| 69 | </html>
|
---|