home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Help! Need to get windows username into HTML form

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1751
Discussions: 204,512, Posts: 2,419,484, Members: 249,929
Old July 2nd, 2004, 02:56 PM   Digg it!   #1 (permalink)
Member
 
SaTaNcLaUz's Avatar
 
Join Date: Apr 2002
Location: (Rob) Indiana - USA
Posts: 498
Exclamation
Help! Need to get windows username into HTML form

Ive searched and searched an cannot find a javascript or html command to get a windows users login name into a text field on a form

anyone have any ideas?

i cant use ASP for this since the form can only be .html

Thanks in advance!
SaTaNcLaUz is offline   Reply With Quote
Old July 2nd, 2004, 05:50 PM     #2 (permalink)
Member
 
Join Date: Oct 2002
Posts: 78
Um, you could use cookies and a form of some sort...but even in asp.net I don't think such a thing exists. The harmful applications would outdo the good most likely.
dystopialives is offline   Reply With Quote
Old July 2nd, 2004, 08:56 PM     #3 (permalink)
Member
 
SaTaNcLaUz's Avatar
 
Join Date: Apr 2002
Location: (Rob) Indiana - USA
Posts: 498
i guess i never thought of the bad things

what i'm doing is i have a web based paging system and the user is required to enter their name, i would like for them to not have to enter it every time they page someone

i guess i'll just use cookies and a javascript to prompt them for their name the first time
SaTaNcLaUz is offline   Reply With Quote
Old July 2nd, 2004, 09:14 PM     #4 (permalink)
Member
 
Join Date: Jul 2003
Posts: 38
Send a message via AIM to Onlooker
you might want to look into programs like winbar and sysmetrix, try to find out how they are getting the username information...i dont know...
__________________
:/
Onlooker is offline   Reply With Quote
Old July 2nd, 2004, 10:04 PM     #5 (permalink)
Member
 
SaTaNcLaUz's Avatar
 
Join Date: Apr 2002
Location: (Rob) Indiana - USA
Posts: 498
ive never used cookies with website before, anyone know of a good place that deals with using javascript and cookies?
SaTaNcLaUz is offline   Reply With Quote
Old July 2nd, 2004, 11:39 PM     #6 (permalink)
Member
 
Join Date: Jan 2004
Posts: 85
Immortal55 is offline   Reply With Quote
Old July 3rd, 2004, 12:30 AM     #7 (permalink)
Member
 
noseBleeD's Avatar
 
Join Date: Jun 2004
Location: usa
Posts: 250
the folowing html can be used and the vbscript will display username.
Maybe you can fine tune it to
<!-- The Name of this File = test2.html --><HTML>
<HEAD> <TITLE>VBScript ->Getting UserName</TITLE>
<SCRIPT LANGUAGE="VBScript">
Dim objNet
On Error Resume Next 'If fail to create object then display error
' (press no message)
Set objNet = CreateObject("WScript.NetWork")
If Err.Number <> 0 Then 'If err
MsgBox "Do not press ""No"" If your browser warns you."
Document.Location = "test2.html" 'Display document by placing name again
End if

Dim strInfo
strInfo = "User Name is " & objNet.UserName & vbCRLF & _
"Computer Name is " & objNet.ComputerName & vbCRLF & _
"Domain Name is " & objNet.UserDomain
MsgBox strInfo


Set objNet = Nothing 'Destroy the Object
</SCRIPT>
</HEAD>
<BODY>
<H1 align="center">That's It</H1>
<H4 align="center">NoseBleeD@TechIMO<BR></H4>

</BODY>
</HTML>
noseBleeD is offline   Reply With Quote
Old July 3rd, 2004, 01:12 AM     #8 (permalink)
Member
 
SaTaNcLaUz's Avatar
 
Join Date: Apr 2002
Location: (Rob) Indiana - USA
Posts: 498
awesome! i'll try that tomorrow, and check w3schools

this seems so simple to do yet i'm having such a hard time with it...


damn i love this place
SaTaNcLaUz is offline   Reply With Quote
Old August 1st, 2007, 04:00 PM     #9 (permalink)
Junior Member
 
Join Date: Aug 2007
Posts: 2
Hey noseBleeD,

I'm a new kid on the block, but that code worked well, but how can you get it into an HTML form? Better yet, if I wanted to send and email using the username or "alias" as my company calls it, how could I put the username in the CC: when using Outlook?
Scoob55k is offline   Reply With Quote
Old August 10th, 2007, 02:04 PM     #10 (permalink)
Junior Member
 
Join Date: Aug 2007
Posts: 2
Anyone?
Scoob55k is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
help configing my router st0rm Networking and Internet 20 March 7th, 2004 07:27 PM
UPLOAD.PHP: Avoiding Filename Overwrites laowensjr Webmastering and Programming 1 November 24th, 2003 01:28 PM
CRASH your IE browser here! samwichse Applications and Operating Systems 10 May 3rd, 2003 02:26 PM
HTML question....very basic! Mr. NoOne Networking and Internet 13 March 31st, 2003 09:46 AM
html coding problem.... Mr. NoOne Networking and Internet 2 March 27th, 2003 12:43 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (1608)
CBO: Obama's health care plan cuts .. (103)
An Inability to Be Civil (8)
USB not recognised..... (16)
would this build be enough for WOW? (14)
Recent Problem (15)
Need some suggestions on building a.. (31)
[ F@H Chat] 03/07/10 New Month New.. (89)
Can't Rename Files (12)
Motherboard the culprit? (7)
Windows XP Pro Error log (9)
Suggestions? (6)
Hard drive full = slower computer? .. (6)
Drive 0 not found: Serial ATA, Sata.. (9)
Recent Discussions
First time builder (3)
IE8 & WLM crash whenever I try to.. (1)
html (0)
iPad, who's getting one? (60)
Writing lead-out (8)
Need some suggestions on building a g.. (31)
SSH Tunnel Or OpenVPN? (1)
About to install a new heatsink and I.. (3)
Can't Rename Files (12)
169 ip address question (4)
Help! Cisco Switch port (interface) f.. (1)
Motherboard the culprit? (7)
burner not burning. (4)
Windows XP Pro Error log (9)
Sim Societies won't launch (0)
[ F@H Chat] 03/07/10 New Month New T.. (89)
HTML (2)
Hard drive full = slower computer? Is.. (6)
Reading Raw data off an SD (MMC) card (8)
Recent Problem (15)
Phone Power (0)
USB not recognised..... (16)
Can i upgrade my gateway nv5448u grap.. (1)
Drive 0 not found: Serial ATA, Sata-0 (9)
i need to find my DNS server IP addre.. (21)


All times are GMT -4. The time now is 11:08 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28