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!

Tracking Info...

Status
Not open for further replies.

Dostani

MIS
Jul 26, 2002
60
US
Greetings All,

I am having a bit of a problem understanding just how to make the index page gather user data. I would like to gather the server.variables data and post it to the database. IP, Referring site, Browser, Screen Size, and speed along with the page viewed and dates viewed. So far reading many books I am to assume this can be started through the Global.ASA file. and recieved through the page but how does one make this process automatically posted to a DB???? Any help with this is appreciated.

Dostani
 
Here are a copy of asp server variables.
alot of the stuff you want you can't get without looking at the log files.

A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
- Quote by Douglas Adams
 
OK seems this might be my fault here.

Thanks for the link point but I have three books that list this also. I understand what the server.variables are and how to get them to "display" my real problem is getting them to post to the DB without the user knowing. Do you make a form with hidden fields and post it that way and can I make a link do this rather then buttonizing the page?

Thanks again for your help,

Dostani
 
well, the variables can be added to the db without them knowing just by adding them to the query.

sql = "insert into table (field1, field2, userIP, userbrowser) values ('"&request.form("field1")&"', '"&request.form("field2")&"', '"&request.servervariables("remote_host")&"', '"&request.servervariables("HTTP_USER_AGENT")"'"

A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
- Quote by Douglas Adams
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top