Perl's .htaccess
Moderator: General Moderators
Perl's .htaccess
Hello, i'am making a prog (an elecronik atzenta tha people sign up and the can post or view records. In order for a user to post something when he hist the post button i want a .htaccess window to pop-up and ask him for user and pass! When he gives the correct user and pass then he is ok to post....but the problem is that .htaccess checks the .htpasswd file for username and password and not my mysql table members that has two filelds user and pass. How must i do to point .htaccess to compare the AUTH_USER and AUTH_PW to compare its values with my mebers records??
If you have php installed as an apache module you can let php do it all.
Check out http://www.php.net/features.http-auth
Check out http://www.php.net/features.http-auth