Computers |
|
| | #1 (permalink) |
| Ultra Techie Join Date: Dec 2004
Posts: 531
| I want to have a button that is an "Make this your homepage" type thing, and I'd like a counter that displays how many times that was clicked. If there is anyway to do this, I'm no good at programming and I'd appreciate a small script that would show this. I am aware that button to make homepage would probably only work in IE, but it's the clicks that matter.
__________________ |
| | |
| | #2 (permalink) |
| Monster Techie | 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?
__________________ |
| | |
| | #3 (permalink) | |
| Newb Techie Join Date: Jun 2007
Posts: 19
| Quote:
| |
| | |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need a good captcha generating php script | surut | Windows Operating Systems and Software | 1 | 05-26-2007 09:23 AM |
| Why does a USB extension cable causes occasional flash drive write error? | piggysmile | Hardware Troubleshooting | 3 | 05-07-2007 01:29 PM |
| Another BASH Script | Greg | Linux, BSD, other *nixes & Open Source Software | 2 | 04-17-2007 06:35 PM |