Page 1 of 1

Variables in .htaccess!

Posted: Sun Aug 18, 2002 1:29 pm
by Cyphonic
Are there any ways of transferring variables from the .htaccess file to a new script?

Say I have a multi user system. A user logs in and want to write something in my forum, so when he gets to the "post new thread" page, I want the username to be already set as default-value in the text box..

Is this possible? :?

Posted: Mon Aug 19, 2002 6:10 am
by volka
please clarify.
Do you want the login the user used when getting access to a .htaccess-auth-restricted site? if so, take a look at $_SERVER['PHP_AUTH_USER'] or write a php-based login