Re: counting hyperlink clicks in php

From: Date: Tue, 20 Feb 2007 08:27:17 +0000
Subject: Re: counting hyperlink clicks in php
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-249065@lists.php.net to get a copy of this message
Brad Bonkoski wrote: > I think the best way to do this would be to set an onClick (Javascript) > event handler for each of the links, and then use AJAX style stuff to > send the information to PHP on the server side, then PHP can log the > link that was clicked, and keep track of the most clicked links. The only problem with this suggestion is the dependency on Javascript. This would not count clicks from browsers that don't support JS or from users who have disabled it in their browsers.

« previous php.general (#249065) next »