FireFox! The PHP Forum Loans and Credit
Panama Web Design for Hire Free Insurance Quotes!
Web Hosting Advertise Here $10 a Month Designer Children
Never Pay Taxes Again HGH Domain name registration
Web Hosting and Dedicated Servers Insurance Affordable web-hosting


HomeWatched TopicsRegisterSearchDirectory
FAQMemberlistUsergroupsLog inStoresItemsBank
Google

Reply to topic Page 1 of 1
question about tracking
Message  

Reply with quote
Post question about tracking 
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.

View user's profile Send private message

Reply with quote
Post  
Yes it is, and it can be completed in many ways. One of such would be to use preg_match with the refer. For example if you have a page called /thisisplace1.asp, the following code would be of service.
Code:
if (preg_match("thisisplace1", $_SERVER['HTTP_REFER'])) {
    $from = "thisisplace1";
}


From then on, you could use the $from variable in ?your mysql_query? to store where the user was from. As you see in PHP, there is the $_SERVER handler that contains client-generated information, such as IP, REQUEST_URI, and other objects you might find handy. http://us.php.net/reserved.variables

View user's profile Send private message
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  



Google

FireFox! The PHP Forum Loans and Credit
Panama Web Design for Hire Free Insurance Quotes!
Web Hosting Advertise Here $10 a Month Designer Children
Never Pay Taxes Again HGH Domain name registration
Web Hosting and Dedicated Servers Insurance Affordable web-hosting


Web Design by PlatinumShore.com & Web Hosting by TradeWebHosting.com