I'm doing a posting system, in which the user, before saving the post, can view it. The view works perfectly, capturing the input values of the edit 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>