I have a webpage that I want to display a persons picture according to who is logged in. For example you would type: c:\documents and settings\%username%.jpg and the result would be c:\documents and settings\UserA.jpg and their image would be displayed. The page is written in asp. Is there a way to use a "percent sign" in the link? An example would be most helpfull.
Rich
Sponsored by: █ Sparkhost - Hosting Without Compromises! █ Hybrid Performance Web Hosting █ Spark Host Stream Hosting █ Hybrid IRC & IRCd Server Shell Accounts
Image place holder
Started by
kingvandal
, Aug 26 2008 02:16 PM
2 replies to this topic
#1
Posted 26 August 2008 - 02:16 PM
Tchirimbimbim!!!
Very Interesting: Windows XP Source Code! and Windows Vista Source Code!!. Read'em and weap...
Very Interesting: Windows XP Source Code! and Windows Vista Source Code!!. Read'em and weap...
#2
Posted 26 August 2008 - 08:53 PM
I have a vb script that might help point you in the direction you want.
[codebox]Set objNet = WScript.CreateObject("WScript.Network")
WScript.Echo objNet.ComputerName & " - " & objNet.UserName
[/codebox]
I think that you can strip out most of the wscript stuff, and go for objNet.UserName
I saved this as computeruser.vbs. If you run it you can see what it does.
[codebox]Set objNet = WScript.CreateObject("WScript.Network")
WScript.Echo objNet.ComputerName & " - " & objNet.UserName
[/codebox]
I think that you can strip out most of the wscript stuff, and go for objNet.UserName
I saved this as computeruser.vbs. If you run it you can see what it does.
#3
Posted 12 September 2008 - 08:23 AM
Ok I am an idiot. WHile it would be neat for the user to see themselves (duh) what the hell good would it do me to see myself as the user?!? LOL! (Was not thinking through this one very well before I asked. OK here is what I really need to do I guess.
A script that will create a link based on text in a webpage. The script would create a linked based on what the username field text says. It would then display the users picture. ( or at this point I don't even need the picure to display ) a simple text link that is clickable to go direct to their image based on the username field text.
See attchment for the theory..
A script that will create a link based on text in a webpage. The script would create a linked based on what the username field text says. It would then display the users picture. ( or at this point I don't even need the picure to display ) a simple text link that is clickable to go direct to their image based on the username field text.
See attchment for the theory..
Attached Files
Tchirimbimbim!!!
Very Interesting: Windows XP Source Code! and Windows Vista Source Code!!. Read'em and weap...
Very Interesting: Windows XP Source Code! and Windows Vista Source Code!!. Read'em and weap...
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users













