I’m new to programming, and have been working with htaccess to secure a directory of mine. File access and that works fine, but I was trying to use the USER:[email protected] format to pass the user login info from a form to the htaccess page to eliminate the popup box.
Unfortunately I can not get this to work with explorer6 or explorer7. I have tried on two different machines. It works fine with netscape. Explorer returns either “windows can not find … check the spelling and try again.” The other minor problem I having is the redirect if the incorrect login info is entered 3 times. It directs to the correct page i have set in htaccess, but it seems the page only loads partially then the popup box comes back. Hit cancel, it loads a little more then the popup box comes back… keeps doing this until the page loads completely.
I would prefer to use mysql database to store user id and pw and use php to access this info. How can I secure my directory with php instead of htaccess?