So I'm learning PHP a short time, and I'm having a doubt, in this code I can compile normally with get, but when I use the post, the code does not compile, does not show errors, code that I sent to a friend with a post type request worked on his machine, does anyone know what might have happened?
<form action="PassWord.php" name="CadastroForm" method="post">
<label>
<span>Senha:</span>
<input type="password" name="senha" value="">
</label>
<input type="submit" value="Enviar Dados" name="send">
</form>
<?php
var_dump($_POST['send']);
if (isset($_POST['send'])){
$pass = $_POST['senha'];
$pass = base64_encode(md5($pass));
echo $pass."<hr>";
}
?>