How would I integrate a javascript alert window with an alert message on die? I want the code that's on the page to remain and have the alert box appear with a message I choose. It seems that on die I can get a message but it kills the code below. Want everything on the page to remain stable, but just have the alert window popup on error.
if(!$_POST['username'] | !$_POST['password']) {
die('You Must Enter in a Username and Pass');
}