Forums

ASP

This topic is locked

Request.ServerVariables("LOGON_USER")

Posted 14 May 2007 18:35:09
1
has voted
14 May 2007 18:35:09 MARIA LOZANO posted:
How to replace the server name to the value that I have to save in the database, in this intruccion.

Dreamweaver mx2004

form name="form1" method="post" action="">
<input name="hiddenUserName" type="hidden" id="hiddenUserName" value="<%= Request.ServerVariables("LOGON_USER" %>">
</form>

Please help me, Than you,

Replies

Replied 16 May 2007 21:19:27
16 May 2007 21:19:27 dave blohm replied:
I'll be glad to help if I can, but I don't understand what it is you are trying to do. Please elaborate.

- Doc

Progress is made by the discontent.
Replied 16 May 2007 21:25:08
16 May 2007 21:25:08 MARIA LOZANO replied:
hi,I want to store the Windows User in database, if I put the instruction:
<%Request.ServerVariables("LOGON_USER" %>
the system show me \\server\user.
I want to delete de server name.

Thank you
Replied 16 May 2007 22:19:21
16 May 2007 22:19:21 dave blohm replied:
If you use request.servervariables("auth_user" instead of "logon_user" the result will be the authenticated user's Windows user name and nothing else.

Hope this helps.

- Doc

Progress is made by the discontent.
Replied 16 May 2007 22:41:07
16 May 2007 22:41:07 MARIA LOZANO replied:
Thank you, it's works!!
Replied 17 May 2007 12:46:17
17 May 2007 12:46:17 logkirk logkirk replied:
thanks, I also have encountered such problem

Software Download
www.usdownload.net/
Replied 17 Dec 2008 11:04:00
17 Dec 2008 11:04:00 art bishop replied:
i followed the steps and I am getting an empty logon user info...

---

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<body>


<br>
<br>
<p><b>Log In ID:</b>
<%Response.Write(Request.ServerVariables("CURRENTUSER")%>

<TABLE>
<TR>
<TD>
<B>Server Varriable</B>
</TD>
<TD>
<B>Value</B>
</TD>
</TR>

<% For Each name In Request.ServerVariables %>
<TR>
<TD>
<%= name %>
</TD>
<TD>
<%= Request.ServerVariables(name) %>
</TD>
</TR>
<% Next %>
</TABLE>


<p> </p>
</body>
</html>

Reply to this topic