View Single Post
  #1 (permalink)  
Old Jan 7th, 2008, 07:14
Monie Monie is offline
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
[SOLVED] User Location

I am using this script to get the location of the user! (Which page are they on right now?)

HTML: Select all
whereIsTheUser = Request.ServerVariables("HTTP_REFERER")
and put it in on top of every page I have in my site. (as an ASP Include File)
The value will then saved(UPDATE tablename SET userPageOn = '"& whereIsTheUser &" WHERE username = '"& Session("name") &"'"') into the database.

My little problem is in the IF THEN ELSE part!
Could anyone give me a better idea on how to do this?

Thanks.
Reply With Quote