click counter

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
mabufo
Forum Commoner
Posts: 81
Joined: Thu Jul 10, 2003 11:11 pm
Location: Orland Park, IL
Contact:

click counter

Post 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?
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post 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.
Post Reply