Forum Moderators: open

Message Too Old, No Replies

create page based on user?

         

keithj

2:49 pm on Oct 4, 2004 (gmt 0)

10+ Year Member



I have several users entered into the .htaccess/.htpasswd files. I'd like to display text and change hidden tags in a form, based on the validated user.

Mostly I need to find out what variable is used to represent the validated user's username. Does anyone have a sample script where some element on the page is changed based on the valideated user? Thanks for any help with this...

crashomon

3:05 pm on Oct 4, 2004 (gmt 0)

10+ Year Member



Hi, good question!

If you don't have access to server-driven databases (PHP,ASP, CFM) then you'll have to set up arrays within javascript that will pull the variables based on user (cookies are good for this).

I don't have script handy, but if you search some javascript script sites, you should find something that will help you create what you're looking for.

Good luck!

Patrick Elward

keithj

3:30 pm on Oct 4, 2004 (gmt 0)

10+ Year Member



I had planned on handling this through arrays, since it's a fairly small number of users involved.

I've done some basic searching for scripts, but haven't come across anything yet that uses the "username" variable... probably because I don't have a clue as to what it's called in javascript. Can anyone point me in that direction?