Page 1 of 1

click counter

Posted: Thu Jul 20, 2006 8:04 pm
by mabufo
I'd like to implement a feature where a php script watches a hyperlink and counts how many times the link has been clicked, so the variable can be displayed later on the page. What would be the best approach to something like this?

Posted: Thu Jul 20, 2006 8:09 pm
by Burrito
probably the easiest way would be to send the click to an intermediate page, record the click in a db, then use header() to send to the final destination.