Forum Moderators: coopster

Message Too Old, No Replies

Capture the login name for the form

Similar question was posted five years ago, but I wish to make it clearer

         

mckingwan

9:37 am on Oct 14, 2008 (gmt 0)

10+ Year Member



Hi everyone~
I have the question about the capturing the login username as stored in the .htaccess.
Now I wish to show the login name when the user logins and then show it in the form. Then I store the login name for further porcessing. But as my form is written in PHP, so how can I get the login username from the .htaccess to the webpage using php?

Thanks very much for your help.

Mic

jatar_k

12:53 pm on Oct 14, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



take a look here
[php.net...]

mckingwan

3:29 am on Oct 15, 2008 (gmt 0)

10+ Year Member



Thanks jatar_k, but after I saw this, I found that it could not support my system as the login is using CGI. So what should I do for this part?

jatar_k

1:18 pm on Oct 15, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



you could go to a user system that uses cookies or sessions as opposed to just htaccess

mckingwan

3:22 am on Oct 20, 2008 (gmt 0)

10+ Year Member



Thanks jatar_k. And from your hints given, I found the final solution about this issue.

[edited by: eelixduppy at 5:38 am (utc) on Oct. 20, 2008]
[edit reason] removed link [/edit]