Dear All
I am trying to user http authentification in the following manner
<?php //index.php
require('auth.inc');
?>
<HEAD><TITLE>Welcome to the MCE Mobile Phone List</TITLE>
<?php
echo "Username: $PHP_AUTH_USER<P>";
echo "Password: $PHP_AUTH_PW<P>";
echo "Auth Type: $PHP_AUTH_TYPE";
?>
<FRAMESET ROWS="187,*" BORDER="0">
<FRAME SRC="header.html">
<FRAME SRC="main.html">
</FRAMESET>
with auth.inc as follows:
<?php //auth.inc
if (! isset($PHP_AUTH_USER)) {
Header('WWW-Authenticate: Basic realm="Admin Site"');
Header('HTTP/1.0 401 Unauthorized');
echo 'Authorisation Required!\n';
echo 'Hit Refresh to try again.';
exit;
}
?>
The authentification works fine, the title on the browser window appears and the window echoes the username and password, but the rest of the window, ie the frames, fails to load.
Can any one eplain why? And what do I do to fix it.
Many thanks
Paul