But wouldn't that mean that anyone who accessed
http://mysite.com/secret.php would get to the page that the webmaster would want to protect?
I am having a similar problem: at the moment I have a games page on my website and (because I am a little unfamiliar with PHP, can only do variable assignment in address bar) i have a javascript that, on submission of the form, makes the url /index.php?page=games/
thepassword so that it can include the
thepassword.html file from the "games" directory.
Is there any way, therefore, that I can have a page at /index.php?page=games or /index.php?page=games/index that will have completely different content from what the user does? At first approach (or if not logged on for more than 5 mins) it will be a password gate, and if already authenticated, it will be the games menu page?
Thanks for your help