I'm trying to make a login system, I made the form so that when the button was pressed it would send 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 put the data and submit the submit, this error message appears in Chrome: arthur000webhostapp.com can not fulfill this request at this time.
Does anyone have any idea why? Is something wrong with the code? Thanks in advance.