CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 url hit count

Print topic Send  topic

Author Message
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.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.