Ok, here's my weird situation.
I'm trying to write a webpage that users fill out and click a submit button to send the info to our help desk. Sounds simple, right? That's what I thought!
Here's what is going on: I want to pull in the current username and computer name of the client and put them into textboxes so that the user can change them if nessisary. I can get the webpage to build the text box with this code -
<script language="vbs">
dim UText, UName, USize, UTabindex
dim netid
netid="bob"
UText="text"
UName="VUsername"
USize="20"
UTabindex="1"
document.Write ("<input type=" & UText & " name=" & UName & " size=" & USize & " _
Value=" & netid & " tabindex=" & UTabindex & ">")
</script>
The problem is that when I add the Set ObjNet = CreateObject("Wscript.Network") line I get an error.
Now, if I change the first line to <script language="text/VBscript"> it will pull the username and computername just fine. However, it won't print.
Help!! I don't know what the difference is. Can someone please tell me how to correct this.
Thanks in advance for your help.
I'm trying to write a webpage that users fill out and click a submit button to send the info to our help desk. Sounds simple, right? That's what I thought!
Here's what is going on: I want to pull in the current username and computer name of the client and put them into textboxes so that the user can change them if nessisary. I can get the webpage to build the text box with this code -
<script language="vbs">
dim UText, UName, USize, UTabindex
dim netid
netid="bob"
UText="text"
UName="VUsername"
USize="20"
UTabindex="1"
document.Write ("<input type=" & UText & " name=" & UName & " size=" & USize & " _
Value=" & netid & " tabindex=" & UTabindex & ">")
</script>
The problem is that when I add the Set ObjNet = CreateObject("Wscript.Network") line I get an error.
Now, if I change the first line to <script language="text/VBscript"> it will pull the username and computername just fine. However, it won't print.
Help!! I don't know what the difference is. Can someone please tell me how to correct this.
Thanks in advance for your help.