Basic authentication prompt : Authentication « HTML « PHP
- PHP
- HTML
- Authentication
Basic authentication prompt
<?
header('WWW-Authenticate: Basic realm="Secret Family"');
header('HTTP/1.0 401 Unauthorized');
exit;
?>
Related examples in the same category