+ 1
you can't do this in html alone. you should use JavaScript or in PHP like this:
function login(){
var e=$("input").text(); // Jquery
{
if e== val // This will be checked from server side using SQL queries
window.location=https:\\yourlocation.html
}
else
{
exit() // I don't remember syntax but you can search which function causes to exit
}