Forum Moderators: DixonJones

Message Too Old, No Replies

Information transfer

transferring user info from client to server

         

Kronos

6:54 pm on Jul 24, 2003 (gmt 0)

10+ Year Member



Hi,

I have to track a lot of user information from the visitors of my web site for statistical purposes. But, I want to keep the code on the webpage itself at a minimum, because I have a lot of pages. I want to be able to just call another page on the server and run the script on it. Is it possible to get the user statistics from another script page that the user cannot see? I'd rather use PHP, but I was told that I had to use javascript for all the user info...

Thanks!

jeremy goodrich

6:59 pm on Jul 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What I do for some things, is have a javascript "ping" a server side script (Perl in my case, but PHP works as well) to then log everything to a remote server. The javascript works to grab the environment variables I'm interested in, such as window.document.referrer and navigator.userAgent (or HTTP_REFERER and HTTP_USER_AGENT in server side scripting).

Hope that helps!