Is there a way to have a page that redirects you to a password protected directory but lets you in by having some type of script that sends the username and password.
urm, not that I'm aware of, php doesn't send the headers to log you in and so I don't think it has any control over them, it's apache that send unauthorized headers that create the login box, try protecting the files with php authentication it'll be easier .....