Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script>
- window.opts;
- window.editor;
- $(function() {
- opts = {...};
- editor = new EpicEditor(opts);
- editor.load();
- });
- </script>
- </head>
- <body>
- <form action="#" method="post">
- <input name="load_hashtag" type="hidden" value="1">
- <!--etc-->
- <input name="load_hashtag" id="load" value="Load" class="button_load big round deep-red" type="submit"/>
- </form>
- <?php
- if(isset($_POST["load_hashtag"])){
- //$city = $mysqli->real_escape_string($_POST['city']);
- //$date = $mysqli->real_escape_string($_POST['date']);
- $var = "hola"; //testing bar.
- echo "<script src=\"Includes/epiceditor/js/epiceditor.js\"><\/script>";
- echo "<script>\r\n";
- echo "window.editor.importFile(\"Readme.md\" , \"".$var."\");\r\n";
- echo "<\/script>\r\n";
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement