I'm doing a login system and I want the user to try to log in and miss the login, so I get a <div>
saying that the information is wrong, but if I do this I give echo "<div> Informações erradas </div>"
, so the user give a refresh on the page, you will be asked to resubmit form. How do I avoid this and keep my div? I've already tried using header("Location: login.php")
, but if I do this my <div> Informações erradas </div>
will be deleted from the page. How do I keep it?