2 odd questions for you!

They have: 32 posts

Joined: Nov 2003

Hey everyone,

I was wondering 2 things:

Is it possible when using .htaccess to have some text say "Welcome person's name" when they log in?

and:

Do you know if there are any plans to allow use of login forms for .htaccess instead of the pop up login box? (Since microsoft recently took this option away)

Thanks in advance,

Mark

He has: 1,758 posts

Joined: Jul 2002

I take it by "when using .htaccess" you mean, when using .htaccess with .htpasswd to password protect a page?

If so, yes using PHP you can get the username and password that were entered in the box using special variables which are:

$PHP_AUTH_USER
$PHP_AUTH_PW
'

This can then be used to retrieve the user's propername from a database,flatfile or whatever... or you could just greet them with their username...

Andy

They have: 32 posts

Joined: Nov 2003

Thanks Andy..Can you tell me what I would do with the code you gave me? As in: Where would I put it? How would I make it work?

I apologize but I am still a php newb!

Thanks,

Mark

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.