getContent.php 862 B

123456789101112131415161718192021
  1. <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
  2. <script src="../uparse.js" type="text/javascript"></script>
  3. <script>
  4. uParse('.content',{
  5. 'highlightJsUrl':'../third-party/SyntaxHighlighter/shCore.js',
  6. 'highlightCssUrl':'../third-party/SyntaxHighlighter/shCoreDefault.css'
  7. })
  8. </script>
  9. <?php
  10. //获取数据
  11. error_reporting(E_ERROR|E_WARNING);
  12. $content = htmlspecialchars(stripslashes($_POST['myEditor']));
  13. $content1 = htmlspecialchars(stripslashes($_POST['myEditor1']));
  14. //存入数据库或者其他操作
  15. //显示
  16. echo "第1个编辑器的值";
  17. echo "<div class='content'>".htmlspecialchars_decode($content)."</div>";
  18. echo "<br/>第2个编辑器的值<br/>";
  19. echo "<textarea class='content' style='width:500px;height:300px;'>".htmlspecialchars_decode($content1)."</textarea><br/>";