This is form-1.html from Week 9 code walkthroughs. When professor runs this code in the video without giving any input, he gets an alert message and his url remains the same. When I try to do it, i get an error saying that register.php doesn't exist. So i made a blank register.php, and now when i try it, i get redirected to register.php (my url changes to : http ://localhost/register.php?email=&password=&confirmation= ). And i dont get any alerts at all.
What am i doing wrong?