Reputation:
Today I faced a problem with TinyMCE.
I just want to make a simple blogging system, but it doesn't seem to be working.
<?php
if(isset($_POST['tinymce'])) {$content = $_POST['tinymce']; echo $content;}
if(isset($_POST['save'])) {$content = $_POST['save']; echo $content;}
?>
<div class="container" id="content">
<pre><?php print_r($_POST); ?></pre>
<form method="post" action="post.php">
<textarea id="tinymce"></textarea>
<input type="submit" name="save" style="color: rgba(255,255,255,0.5);background:none;border:none;" value="action">
</form>
</div>
Here's the code I'm using.
I also added print_r(), and here's the result when I click ACTION button:
Any help?
Upvotes: 1
Views: 49
Reputation:
Thanks to @Dagon and @Ohgodwhy, I needed to place name= tag for it to work. Thanks again!
Upvotes: 1