1
I need your help trying to solve a little problem.
I have a login page and after clicking SIGN IN goes to another page validalogin.php validate the login.
Whenever the user fails the login the user is forwarded to the index.php with the end of URL index.php?login=erro2.
I want to place whenever the user has login=erro2 in the URL I put an error message.
<?php if(header == 'erro2'){ ?>
<div class="text-danger">
Utilizador ou senha inválidos
</div>
<?php } ?>
Something like that. It’s possible?
Thank you!