Well, I'm making a simple code ... I just want to get the information typed in the form. But it's not right, GET works ... the Post does not.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<form action="index.php" method="POST">
Nome: <input type="text" name="nome" value="1">
Idade: <input type="text" name="idade" />
<input type="submit" value="POST"/>
</form>
<?php
$nome = $_POST["nome"];
echo $nome;
?>
</body>
</html>
I have tried to do it in a separate file, but it did not work, is it something in php.ini? I'm using XAMP tbm ...