Guest User

Untitled

a guest
Sep 8th, 2014
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.96 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <title>A Simple Page with CKEditor</title>
  5.         <!-- Make sure the path to CKEditor is correct. -->
  6.         <script src="http://localhost/ECLIPSEPHP/ckeditor/ckeditor.js"></script>
  7.     </head>
  8.     <body>
  9.         <form action="<?php echo $_SERVER['PHP_SELF']?>">
  10.             <textarea name="test" id="test" rows="10" cols="20">
  11.                 This is my textarea to be replaced with CKEditor.
  12.             </textarea>
  13.             <input type="submit" name="submitButton" id="submitButton" value="Submit">
  14.             <script>
  15.                 // Replace the <textarea id="editor1"> with a CKEditor
  16.                 // instance, using default configuration.
  17.                 CKEDITOR.replace( 'test' );
  18.             </script>
  19.             <script type="text/javascript" src="http://localhost/ECLIPSEPHP/js/update.js"></script>
  20.         </form>
  21.     </body>
  22. </html>
  23.  
  24. <?php
  25.     var_dump($_POST);
  26. //echo $_POST['test'];
  27.     ?>
Advertisement
Add Comment
Please, Sign In to add comment