1 | <?php |
---|
2 | /* |
---|
3 | * FCKeditor - The text editor for internet |
---|
4 | * Copyright (C) 2003-2006 Frederico Caldeira Knabben |
---|
5 | * |
---|
6 | * Licensed under the terms of the GNU Lesser General Public License: |
---|
7 | * http://www.opensource.org/licenses/lgpl-license.php |
---|
8 | * |
---|
9 | * For further information visit: |
---|
10 | * http://www.fckeditor.net/ |
---|
11 | * |
---|
12 | * "Support Open Source software. What about a donation today?" |
---|
13 | * |
---|
14 | * File Name: sampleposteddata.php |
---|
15 | * This page lists the data posted by a form. |
---|
16 | * |
---|
17 | * File Authors: |
---|
18 | * Frederico Caldeira Knabben (fredck@fckeditor.net) |
---|
19 | * Jim Michaels (jmichae3@yahoo.com) |
---|
20 | */ |
---|
21 | ?> |
---|
22 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
---|
23 | <html> |
---|
24 | <head> |
---|
25 | <title>FCKeditor - Samples - Posted Data</title> |
---|
26 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
---|
27 | <meta name="robots" content="noindex, nofollow"> |
---|
28 | <link href="../sample.css" rel="stylesheet" type="text/css" /> |
---|
29 | </head> |
---|
30 | <body> |
---|
31 | <h1>FCKeditor - Samples - Posted Data</h1> |
---|
32 | This page lists all data posted by the form. |
---|
33 | <hr> |
---|
34 | <table width="100%" border="1" cellspacing="0" bordercolor="#999999"> |
---|
35 | <tr style="FONT-WEIGHT: bold; COLOR: #dddddd; BACKGROUND-COLOR: #999999"> |
---|
36 | <td nowrap>Field Name </td> |
---|
37 | <td>Value</td> |
---|
38 | </tr> |
---|
39 | <?php |
---|
40 | |
---|
41 | if ( isset( $_POST ) ) |
---|
42 | $postArray = &$_POST ; // 4.1.0 or later, use $_POST |
---|
43 | else |
---|
44 | $postArray = &$HTTP_POST_VARS ; // prior to 4.1.0, use HTTP_POST_VARS |
---|
45 | |
---|
46 | foreach ( $postArray as $sForm => $value ) |
---|
47 | { |
---|
48 | $postedValue = htmlspecialchars( stripslashes( $value ) ) ; |
---|
49 | |
---|
50 | ?> |
---|
51 | <tr> |
---|
52 | <td valign="top" nowrap><b><?=$sForm?></b></td> |
---|
53 | <td width="100%"><?=$postedValue?></td> |
---|
54 | </tr> |
---|
55 | <?php |
---|
56 | } |
---|
57 | ?> |
---|
58 | </table> |
---|
59 | </body> |
---|
60 | </html> |
---|