user5353145
user5353145

Reputation:

tinymce doesn't return the text written

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: enter image description here Any help?

Upvotes: 1

Views: 49

Answers (1)

user5353145
user5353145

Reputation:

Thanks to @Dagon and @Ohgodwhy, I needed to place name= tag for it to work. Thanks again! enter image description here

Upvotes: 1

Related Questions