0
I am trying to make the data typed by the user appear on another page when he clicks the button only the page is updated but does not contain the information typed.
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’ve looked over and over but I can’t find the error,?
Do not use stacksnippets (code snippets) unnecessarily, they are not to format but to execute js+css+html codes that do something, if not to do anything use the normal dialing.
– Guilherme Nascimento