Re: Can someone write this script for me? Count clicks There are two possible ways of doing this that come to mind:
1) You can use javascript to set a cookie when the user clicks the link/button, and then if the user navigates elsewhere on your website, the cookie could be read by a server side script and logged in a file or database.
2) Using ajax, you could send the update right away by doing a get/post to a page.
One thing to think of though, if you want all clicks counted, just once per IP, or both (all clicks is easy/relating to the IP just means a little more processing as you have to loop through the old data). Both would be relatively easy, at least, if your server supports PHP?
__________________ |