0
So I’m learning PHP a little bit, and I’m having a doubt, in this code I can compile normally with get, but when I use the post, the code doesn’t compile, it doesn’t show errors, I realized a little while ago, that a code I sent to a friend with post type requisition worked on his machine, someone knows 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>";
}
?>
Take that die() there.
– taiar
PHP does not compile! It is a script language, interpreted. Hugs.
– taiar
@taiar, thanks man, but on other pc’s the code works with post, know what is happening? and take die() did not help.
– Kleber Santana
Is your file called Password.php in all of them? The directory is perfect?
– taiar
you need to insert more elements of the problem, such as: Are you using pure php or some cms platform? that file Password.php is the code below the form?
– Andrei Coelho