Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Click Counter

  1. #1
    New Coder
    Join Date
    Jul 2010
    Posts
    66
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Click Counter

    Hi Everyone.

    I am looking to create a button on a website that visibly shows how many people have clicked on it. Much like a Facebook 'like' button but without the social media interaction. It's essentially a button that someone clicks and the numerical value beside increases per unique visitor.

    Is this even possible? If so, How? I have searched high and low but with no luck!

    Thanks

    Joe

  • #2
    New to the CF scene
    Join Date
    Sep 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You would have to have an onlick function that would run your script. Get the users ip address and check to see if it is in your database if not add it. Then get the total number if ips in the list and there is your new counter number


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •