PHP - How to print errors on login form on index page?
Ok, so this question is kind of hard to word, but i'll try my best. So I currently have an index.php page with a pop-up login form and I have login.php with all the login php stuff to deal with the request. At the moment I can only seem to print login errors on the login.php page, which opens up a blank white page with just the errors on that, due to the fact that the form action on my index.php form is set to "login.php" which deals with the login stuff.. What I want is to print the erros on the login form in my index.php, but have the login.php deal with the rest of the php. I hope that kind of makes sense.