forgeplus/public/editormd/examples/php/post.php

18 lines
475 B
PHP

<?php
header("Content-Type:text/html; charset=utf-8");
header("Access-Control-Allow-Origin: *");
if (isset($_POST['submit'])) {
echo "<pre>";
echo htmlspecialchars($_POST["test-editormd-markdown-doc"]);
if(isset($_POST["test-editormd-html-code"])) {
echo "<br/><br/>";
echo htmlspecialchars($_POST["test-editormd-html-code"]);
}
echo "</pre>";
}
exit;
?>