Help with username

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
jero87
-


Joined: 11 Jul 2007
Posts: 10

PostPosted: Wed Jul 11, 2007 12:08 am    Post subject: Help with username Reply with quote

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 View user's profile Send private message
roganty
-


Joined: 08 Jun 2004
Posts: 357
Location: Bristol, UK

PostPosted: Wed Jul 11, 2007 1:06 am    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
jero87
-


Joined: 11 Jul 2007
Posts: 10

PostPosted: Wed Jul 11, 2007 1:13 am    Post subject: sorry... Reply with quote

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 View user's profile Send private message
pkSML
-


Joined: 29 May 2006
Posts: 952
Location: Michigan, USA

PostPosted: Thu Jul 12, 2007 10:06 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group