0
I’m making a posting creation system, in which the user, before saving the post, can view it. The visualization works perfectly, capturing the input values of the editing page.
Now how do I get the contents of the div .post and play at the beginning of my posts.php, when the user clicks the save button.
        <div class="posts">
            <?php
                echo "<div class='post $tipo $cor'>
                <div class='post-title'>
                    <h2>$titulo</h2>
                </div>                               
                <div class='post-subtitle'>
                    <h3>$subtitulo</h3>
                </div>
                <div class='post-content'>
                    $conteudo
                </div>"
            ?>
          </div>
And how to write the post with the values at the beginning of
posts.php?– Daniel Bonifácio
Good morning @Daniel, if my suggestion helped you, I could mark it as an answer?
– Hugo Leonardo
Thank you @Danielbonifácio
– Hugo Leonardo