I have the following form
<form method="POST">
<input id="comentario" type="text" name="comentario" id="comentario">
<input type="submit" name="Comentar" value="Comentar" id="Comentar">
</form>
It is necessary to display on the screen what is typed in the input text. I also have this section that checks if the button has been clicked (I plan to do my logic here)
<?php
if(isset($_POST['Comentar'])){
echo "botão foi clicado";
}
?>