I'm trying to create a working Login for a project.
I already have a file "Login" with a form that take email and password, this data get send to another file "Control_login" and if they match with the data in the database "Control_login" redirect you to the home page (logged) if not "Control_login" redirect you again to the login page.
So what i want is that when "Control_login" redirect to the login page i want a pop-up alert that say that the email or the password are wrong.
I already know how to create a pop-up but i don't know how to make it appear after the user get redirected from "Control_login" to "Login".
Thank for the help.