_posteddata.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <?php
  3. /*
  4. Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
  5. For licensing, see LICENSE.html or http://ckeditor.com/license
  6. */
  7. ?>
  8. <html xmlns="http://www.w3.org/1999/xhtml">
  9. <head>
  10. <title>Sample &mdash; CKEditor</title>
  11. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  12. <link type="text/css" rel="stylesheet" href="sample.css" />
  13. </head>
  14. <body>
  15. <h1 class="samples">
  16. CKEditor &mdash; Posted Data
  17. </h1>
  18. <table border="1" cellspacing="0" id="outputSample">
  19. <colgroup><col width="100" /></colgroup>
  20. <thead>
  21. <tr>
  22. <th>Field&nbsp;Name</th>
  23. <th>Value</th>
  24. </tr>
  25. </thead>
  26. <?php
  27. if ( isset( $_POST ) )
  28. $postArray = &$_POST ; // 4.1.0 or later, use $_POST
  29. else
  30. $postArray = &$HTTP_POST_VARS ; // prior to 4.1.0, use HTTP_POST_VARS
  31. foreach ( $postArray as $sForm => $value )
  32. {
  33. if ( get_magic_quotes_gpc() )
  34. $postedValue = htmlspecialchars( stripslashes( $value ) ) ;
  35. else
  36. $postedValue = htmlspecialchars( $value ) ;
  37. ?>
  38. <tr>
  39. <th style="vertical-align: top"><?php echo htmlspecialchars($sForm); ?></th>
  40. <td><pre class="samples"><?php echo $postedValue?></pre></td>
  41. </tr>
  42. <?php
  43. }
  44. ?>
  45. </table>
  46. <div id="footer">
  47. <hr />
  48. <p>
  49. CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
  50. </p>
  51. <p id="copy">
  52. Copyright &copy; 2003-2011, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved.
  53. </p>
  54. </div>
  55. </body>
  56. </html>