I'm trying to make the data entered by the user appear on another page when he clicks the button, but the page is updated but does not contain the information entered.
HTML file
<form action="php/dados.php" method="post">
<input type="text" id="cNome" name="tNome" size="20" maxlength="20" placeholder=" Digite Seu Nome"/>
<input type="submit" value="Enviar"/>
<input type="reset" value="Cancelar"/>
</form>
PHP file
<?php
$nome = $_POST["tNome"];
echo "Obrigado $nome";
?>
I have looked several times but can not find the error, what would it be?