Advertisement
dskzz

tester

Jul 23rd, 2013
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. <?php
  2. session_start();
  3. require_once '/lib/handle_source.php';
  4. require_once '/lib/handle_db.php';
  5. require_once '/lib/trans_src_to_db.php';
  6.  
  7. ?>
  8. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  9. <html xmlns="http://www.w3.org/1999/xhtml">
  10. <head>
  11.  
  12. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  13. <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
  14. <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
  15.  
  16. <link rel="stylesheet" type="text/css" href="style.css" />
  17. <title></title>
  18. </head>
  19. <script>
  20. $(
  21. function() {
  22. var dom_encoded = <?php echo $_POST['dom_string']; ?>;
  23. var dom_decoded = JSON.parse(dom_encoded);
  24.  
  25. $('#main').html=dom_decoded;
  26. });
  27.  
  28. </script>
  29.  
  30. <body>
  31. <div id='main'> </div>
  32. <?php
  33. //$f = fopen('./tmp/dom.dat', 'w');
  34. //fwrite( $f, $_POST['dom_string'] );
  35. var_dump($_SESSION);
  36. echo "<hr>";
  37. var_dump($_COOKIE);
  38. echo "<hr>";
  39. var_dump($_POST['dom_string']);
  40. echo $_POST['dom_string'];
  41. ?>
  42. </body>
  43. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement