-3
I am trying to make a login system, I made the form so that when the button was pressed it sent to a page with the following code:
<body>
<?php
$conexao = mysqli_connect("localhost", "123456", "senha","banco")
?>
<?php
// RECEBENDO OS DADOS PREENCHIDOS DO FORMULÁRIO
$email = $_POST ["email"];
$senha = $_POST ["senha"];
mysqli_query($conexao, "SELECT * FROM voluntarios WHERE email = '$email' and senha = '$senha'");
if (email = '$email' & senha = '$senha') {
header("Location: indexVol.php");
} else {
echo "E-mail e/ou senha errados!";
}
}
?>
</body>
But when you input the data and give it to Ubmit, this error message appears in Chrome: Arthur.000webhostapp.com is currently unable to fulfill this request.
Does anyone have any idea why? Is there something wrong with the code? Thanks in advance.