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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vbscript problem in IIS custom error pages

Status
Not open for further replies.

ahevans

Technical User
Jan 27, 2006
26
GB
Hi

I have made some custom aspx pages for IIS so when I get something like a http 401 error, IIS send the user to the chosen aspx page. All works well except that I have used vb script to grab things like refering urls etc and to write it to a text area so a user can copy and paste it into an email to me.

My code is (within a text area form element):

Code:
Requested document = 
<%@ Language=VBScript %> 
<%
dim strURL
strURL = request.servervariables("url")
Response.Write(strURL)
%>
Query string = 
<%
dim strQST
strQST = request.servervariables("Query_String")
Response.Write(strQST)
%>
Current domain = 
<%
dim strDOM
strDOM = Request.ServerVariables("HTTP_HOST")
Response.Write(strDOM)
%>
Refering URL = 
<%
dim strREF
strREF = request.servervariables("HTTP_REFERER")
Response.Write(strREF)
%>

Problem is, when I try this locally on my machine, all works fine or if I VPN into the network (its an intranet) all works, but users email me the contents of the text area and it shows all the vbscript.

Any ideas why this happens?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top