Files
cm-web/application/views/admin/data_post.php
2020-06-10 06:21:34 +09:00

23 lines
652 B
PHP
Executable File

<html>
<head>
</head>
<body>
<form method="post" action="/admin/posts/new">
<textarea style="display:none" name="content">
<?php echo $article['article']?>
</textarea>
<input type="hidden" name="postTitle" value="<?php echo addslashes(trim($article['title']))?>">
<input type="hidden" name="postImage" value="<?php echo addslashes(trim($article['img']))?>">
<textarea style="display:none" name="postExcerpt">
<?php echo trim($article['postExcerpt'])?>
</textarea>
</form>
<script>
document.forms[0].submit();
</script>
</body>
</html>