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

Server Variables ? 2

Status
Not open for further replies.

JimFlower

Programmer
Jun 21, 2001
42
GB
I have the following code

dim xxx
xxx = Request.ServerVariables("Logon_User")
fp_sQry="SELECT * FROM Results Where User ='" & xxx & "'"

and its not working

fp_sQry="SELECT * FROM Results Where User ='Jim'"

This does work so the value of xxx must not be right
How do I view xxx and what else can I do?
 
You could try debugging by printing it's value on the web-page:
Code:
Respone.Write("Value of xxx: " & xxx)
Response.End

Palooka
 
You may want to try adding the following after the dim statement.
Code:
response.write "User = " & Request.ServerVariables("Logon_User")
This will write out the value of the Logon_User servervariable.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top