Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

access to machine ID

Status
Not open for further replies.

tanneddevil

Programmer
Apr 20, 2004
18
CA
hey everyone....

i posted this before in the javascript forum, but to no avail. Anyways, each computer on an intranet has a unique machine id or ip address. How can i get that id?? Keep in mind the corporation i work for hasnt given me access to the server (its all about politics) so i need to do everything on the client side. I need it for a a web page that when the user submits from a form i can get what machine the form came from.

Thanks in advance
 
An ActiveX control?

01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111
The never-completed website:
 
if its possible..but what i am doing right now is an online form (intranet) that any user can access and then they fill out the fields and click submit. Upon the regular fields that i have asked for and a few hidden fields, i was trying to get an id associated with that computer. Or if i can with that user profile as set up in windows 2000 pro. However i have no access to the server, so i have been using javascript all on the client side. Its tough when i cant have access to the server
 
what about
Code:
ip=request.servervariables("REMOTE_ADDR")

or in a windows network

auth = request.servervariables("LOGON_USER")


Bastien

Cat, the other other white meat
 
thnxs..im a little slow today..its a monday..
is that for javascript or vbscript..right now im using all javascript


<html>
<head>
<script language="JavaScript">

// drowpdown list
var cat = new Array("Other","Printers","Telephone","Laptops","Email");
var recip ="email" //email address
var subj="**support**"; //subject line header
var msg= ""; //used to send category
var email_add;
function populate(o) {
for(i=0; i< cat.length; i++){
o.options[o.options.length] = new Option(cat);
}
}
function sendtheMail() {
if(document.forms[0].email.value == "new"){
email_add = document.forms[0].text.value;
}
if (document.forms[0].description.value == "") {
alert("No Desription given!");
return false;
}
msg = document.forms[0].category.value;
document.forms[0].action = "mailto:" + recip +"?subject=" + subj +"&body=" + msg + email_add;
return true;
}
</script>
</head>

<body onload="populate(document.forms[0].category);">
<form method="post" enctype="text/plain">
<table border=0>
<tr valign="top">
<td>
</b>Select a Category<b><select name="category"></select>
</td>
<td>&nbsp;</td>
</tr>
<tr valign="top">
<td align="right"><b>Nature of the Problem</b></td>
<td><textarea name="description" rows=4 cols=60></textarea></td>
</tr>
<tr>
<td>
<input
type="radio"
name="email"
value = "default"
onchange="this.form.text.disabled = this.checked;"
checked="checked"/>
use default mail for response
<br/>
<input
type="radio"
name="email"
onchange="this.form.text.disabled = !this.checked;"/>
send response to this email
<input name="text" disabled="disabled">
</td>
</tr>
</table>
<hr>
<input type="submit" value="Send mail" onClick="sendtheMail()">
</form>
</body>
</html>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top