Hello,
Is it possible to replace the standart .htaccess login form with a html(php) - login -form?
e.g.
login.php //user inputs username and password and after submitting he can access the "path/protected dir/".
thanks for your help,
try this code taken from http://hotwired.lycos.com/webmonkey/00/05/index2a_page2.html?tw=programming
<?php // File Name: auth01.php // Check to see if $PHP_AUTH_USER already contains info if (!isset($PHP_AUTH_USER)) { // If empty, send header causing dialog box to appear header('WWW-Authenticate: Basic realm="My Private Stuff"'); header('HTTP/1.0 401 Unauthorized'); echo 'Authorization Required.'; exit; } // If not empty, display values for variables else { echo " <P>You have entered this username: $PHP_AUTH_USER<br> You have entered this password: $PHP_AUTH_PW<br> The authorization type is: $PHP_AUTH_TYPE</p> "; } ?>
thanks.