Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
Thread: web link counter
02-27-2007, 09:15 PM #1
- Join Date
- Feb 2007
- Thanked 0 Times in 0 Posts
web link counter
I have a web page containing a collection of links. On one link I want to keep a count of the number of times this particular link has been clicked on or visited. I thought that the thing to do is:
02-27-2007, 09:36 PM #2
that sounds like it would work. why not try it yourself first? then if you have problems post what youve made and we can correct it.
02-27-2007, 09:53 PM #3
- Join Date
- Jun 2002
- Thanked 215 Times in 212 Posts
The better solution is to make the link refer to a server-side script passing the url or url id of the clicked link. In the server-side code, update the database based on the passed url or url id. After the update is completed, redirect to the passed url.
<a href="linkcounter.asp?url=mypage.htm">my page</a>Glenn
Tower of Hanoi Android app (Ad-FREE!)
Tower of Hanoi Android app (FREE!)
Tower of Hanoi Leaderboard
vBulletin 5 Floating Bar extension
vBulletin 5 Slideshow extension
vBulletin 5 Quote Selected Text extension
vBulletin 5 Profile Preview Tooltip extension