View previous topic :: View next topic |
Author |
Message |
jero87 -
Joined: 11 Jul 2007 Posts: 10
|
Posted: Wed Jul 11, 2007 12:08 am Post subject: Help with username |
|
|
Ive searched the forum with no success.... maybe im just blind.
Im trying to set the username that visitors input in the Standard Abyss Access Control form to a php variable or whatever else i can.
My basic goal is for when users log on to my website it says, Welcome $user!
Yeah its cheesy i know.
Thanks guys for answering my noob question. |
|
Back to top |
|
|
roganty -
Joined: 08 Jun 2004 Posts: 357 Location: Bristol, UK
|
Posted: Wed Jul 11, 2007 1:06 am Post subject: |
|
|
jero87, welcome to the forums!
I believe the variable you are after is $HTTP_AUTH_USER
If that doesn't work try $_SERVER['HTTP_AUTH_USER']
You can also get the password by using $HTTP_AUTH_PW _________________ Anthony R
Roganty | Links-Links.co.uk |
|
Back to top |
|
|
jero87 -
Joined: 11 Jul 2007 Posts: 10
|
Posted: Wed Jul 11, 2007 1:13 am Post subject: sorry... |
|
|
neither one seems to be working...
could one of you guys try it to see if its just me...
all i can get is remote user to kick out.
..btw thanks glad to be here and help out however i can! |
|
Back to top |
|
|
pkSML -
Joined: 29 May 2006 Posts: 952 Location: Michigan, USA
|
Posted: Thu Jul 12, 2007 10:06 pm Post subject: |
|
|
You can see all the goodie info passed to PHP from Abyss by using a foreach loop to print all of the server variables.
Code: | <?php
foreach($_SERVER as $key_name => $key_value) {
print $key_name . " = " . $key_value . "<br>";
}
?> |
Put this script in one of your password-protected directories. Then you can see how to get the info you want. Each variable is accessed in PHP as $server[variable]. _________________ Stephen
Need a LitlURL?
http://CodeBin.yi.org |
|
Back to top |
|
|
|