How do I put a tally counter on a webpage?
September 21, 2016 1:03 PM   Subscribe

I hope I used the correct terminology in the question. I haven't made a website since maybe 2004-ish, and even then I was using stuff like Angelfire and Microsoft FrontPage. But now I want to make a very simple website, consisting of one page with text and a counter. The counter should only be able to go up, never down, and it should go up by one each time a person clicks on it. Is there free code out there that I can just copy and paste onto my page, like hit counters?

If not, can someone who knows what they're doing maybe help me with this project? MeMail me and I'll tell you what it's for.
posted by Anyamatopoeia to Computers & Internet (3 answers total)

This post was deleted for the following reason: Hey, what you have hear is an Ask question and a Jobs ad - they don't go well together. Go ahead and post a Job if you want (it doesn't have to be paid) - it looks like that will meet your needs better anyway. -- restless_nomad

 
If you're going to store this information you need to be able to save the count data to the server. Otherwise every time a user loads the page the counter will reset to 0. So this can't be "simple" in the sense you mean it, because you need, at a minimum, a file to which the server can write, and you'd need some server-side code grabbing the hit count from a POST and incrementing the number in the file. There would also need to be server-side code to get the number each time the page is loaded and populate the number in the counter. There are many, many ways to do this but none of them are as simple as including a snippet of code.

Here's a decent solution on Stack Overflow using Javascript and PHP. You'd have to modify it to do what you want, but this is the basic idea.
posted by eustacescrubb at 1:12 PM on September 21, 2016


Response by poster: I was afraid of that. :( I have no idea how to do Javascript or PHP, or what any of what you said meant. So I guess that brings me to my second question: would anyone be willing to help me do this?
posted by Anyamatopoeia at 1:26 PM on September 21, 2016


if the idea is that users are voting (or you can frame it that way) then it looks like there are third party solutions like this (from this search).
posted by andrewcooke at 1:28 PM on September 21, 2016


« Older Watching the US Presidential Debate in Amsterdam?   |   Learning to Code apps Newer »
This thread is closed to new comments.