hello,
you can see with the following syntax :
http://login:[EMAIL PROTECTED]/protecteddir/
So, the user enter the code and passwd from a PHP form,
then you redirect him with this syntax.
But prefer redirection with a javascript, because M$ Explorer seems do not
love this:
Header("Location: http://login:[EMAIL PROTECTED]/protecteddir/");
So in with a javascript, do the following :
<HTML>
<BODY>
<script language="javascript">
document.location="<?echo
"http://$CODE:$[EMAIL PROTECTED]/protecteddir/";?>";
</script></BODY>
</HTML>
where $CODE and $PWD are the login and password of the user.
jean-arthur
At 09:25 08/02/01 +0100, Christian Sakshaug wrote:
>Hey
>
>Take a look at www.phpbuilder.com, www.devshed.com or one of they many
>good sites on the net. Here you will find tutorials, forums, tips etc,
>that you can use for increase your experiance. I also suggest books to
>increase your exp to...
>
>http://www.php.net/links.php for more links
>
>
>
>At 05:16 08.02.2001, you wrote:
>>Hello Everybody,
>>
>>Does anybody know or have some PHP code to read the htaccess file.
>>I have a couple of directorys protected by the htaccess & htpasswd files on
>>the Unix Apache server I use. But I want to create a webpage with input
>>boxes to simulate the popup dialog that appears when entering the protected
>>areas.
>>
>>So rather than enter the username & password in the dialog I want to enter
>>them in a webpage.
>>Its all for looks, to give the site a user friendly asthetic look.
>>
>>Please help.
>>
>>Pretty please....
>>
>>Chris
>>
>>
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
>Best Regards, Christian Sakshaug
>--
>Email: [EMAIL PROTECTED]
>Web: www.sakshaug.net
>Tel: +47 913 95 618
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
----------------------------------------------------------------
Le simple fait de passer par la fenetre ne suffit pas a la transformer en porte.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]