pdog
|
Posted: 01/14/2002, 1:49 PM |
|
1) how do you add a counter on a url (once you click it) without obstructing the href value (php) -do i need to utilize $PHP_SELF?
2) I would also like to pass let say a userid value to track which users click on which url to help identify the urls they already visited.
|
|
|
Nicole
|
Posted: 01/15/2002, 5:00 AM |
|
Hello,
these tasks are related to each other. I suppose you can add javascript code executed on onclick event of any url link. Add window.location code to redirect user to address stored in url field and add any unique parameter to be able to identify what url was clicked, e.g. pass url_id value.
To be able to store number of hits I think you should create "links" table where add field like "hit_count". In the Open event of all pages add code that will update links table. You can refer to thread http://www.gotocode.com/disc_viewt.asp?mid=4787
there's described how to do it.
|
|
|
|