Re: count link clicks

From: Date: Tue, 13 Aug 2002 18:48:48 +0000
Subject: Re: count link clicks
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-112398@lists.php.net to get a copy of this message
Write a link wrapper that you would use like this: <a href="wrap.php/www.domain.com/path/file.html"> Then in wrap.php: <?php $link = substr($PATH_INFO,1); ... increment counter in database for $link ... header('Location: $link'); ?> -Rasmus On Tue, 13 Aug 2002 victor@argilent.com wrote: > How do I count how many times a user clicks on a certain link? (and put > it into and array or variable I guess). > > I want to be able to repeat a certain action on the same page as many > times as the user clicks on the link($PHP_SELF). > > Thanks, > > - Vic > > > > ______________________________________________________________________ > Post your ad for free now! http://personals.yahoo.ca > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#112398) next »