PhP/Login empty input box issue
<p>I'm creating a website that requires the user to enter a username and password to access the site. 
Everything works perfectly. If right password and username are entered, access is granted. If not, it redirects the user to the same login form page. 
However, the problem i'm facing is in the following code in php:</p>

<pre><code> if (!$_POST['username'] | !$_POST['pw'] ) {

        die("At least one box was left empty");

    }
</code></pre>

<p>This piece of code checks if the user left any of the 2 input boxes empty. It kills the site and outputs the wanted sentence. However, what i would like to do is redirect the user into the Login form page.
Any help with that? 
Thanks folks   </p>
