I would like to pop up my alert box in the same page. I am using it on php?

jhoe

New member
echo "<script language=javascript>alert('Please enter a valid password.')</script>";

That is my pop message when he entered a wrong password it is on my login.php file. It shows up when I entered the wrong password but it pop up on a new white page. I would like to know the code so it will pop up on the same page for me it is on index.html
 
Back
Top