CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
Passing Username from htaccess into script



Dec 18, 2000, 8:59 AM

Post #1 of 2 (219 views)
Passing Username from htaccess into script Can't Post

Here is what I am trying to do. Currently I have users logging in on a homemade front end. I don't like it. I would much prefer to pass the username into my scripts via a pop up dialoug box that is generated from .htaccess. So basically what I want to do is have a pop up dialog box from htaccess come up when the user attempts to access the page. I want them to enter the username and password, and then have it pass that info into my perl script. And that is where I am currently stuck. How do you pass the username and password into the script. I checked $ENV{'REMOTE_USER'} but its not in there. Is there a chance that is from a server config issue, or am I just in the wrong direction? Any help would be greatly appreciated.


Dec 18, 2000, 11:10 AM

Post #2 of 2 (217 views)
Re: Passing Username from htaccess into script [In reply to] Can't Post

does in fact corroborate what you say about that environmental variable:

If the server supports user authentication, and the script is
protected, this is the username they have authenticated as.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives