Thank you, awesome script.. I found it very helpful! I got it working very quickly with the helpful forum instructions.
One question I have is if it is possible after implementing the login/password form on the main page of a website (user must type in both username and password), can it be redirected to another page on the website after successful authentication?
Thanks again!
to be more clear: what I have done is put the appropriate php code before and after my <html></html> sections (this is my main page index.php), and currently successful authentication submission ends up in a blank page. I would like a succesful authentication to redirect the user to another page (i.e. privatepage.htm) instead. (I understand omitting the "incorrect password" part of the code will not display to the user when a wrong password is entered, it just stays on the current page which is ok). My form code reads:
<form method="post">
Login:<input type="input" name="access_login" />Password:<input type="password" name="access_password" /><input type="submit" name="Submit" value="LOGIN" />
</form>
<a style="font-size:9px" href="http://www.zubrag.com/scripts/password-protect.php" title="Download Webpage Password Protect">Powered by Webpage Password Protect</a>