...

View Full Version : question about tracking



sudhakararaog
11-26-2007, 08:58 PM
i have made a email newsletter sign up page and there is a php file that processes the information and inserts the information the user has entered in the form into a table.

the php file is in linux server and the webpage is an asp page hosted on a cms system using microsoft

using the php file that is in linux is it possible to track which page the user had clicked on the website before filling out the newsletter information as there are links in more than 1 page on the website from where the user can click and fill out the form.

please advice if this can be done and if possible please provide the code.

thanks.

Fumigator
11-26-2007, 09:09 PM
Look into the global variable $_SERVER['HTTP_REFERER'] (http://us3.php.net/reserved.variables), which may fill your needs. However, as the manual mentions, it can't really be trusted.

Much better would be to pass a value via the query string. That would require changing all the links though... and can be modified by the user. Though I'm not sure anyone would bother.

aedrin
11-26-2007, 09:44 PM
You could also use centralized sessions, but that might be a bit overengineered depending on your situation.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum