![]() |
|
how do i make a thumbs up and down button counter? - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Webmasters (https://hackforums.net/forumdisplay.php?fid=141) +---- Forum: Website Construction (https://hackforums.net/forumdisplay.php?fid=50) +---- Thread: how do i make a thumbs up and down button counter? (/showthread.php?tid=3607033) |
how do i make a thumbs up and down button counter? - danielpherlio - Jul 8, 2013 how do i make a thumbs up and down counter like when i press thumbs up it will say 1 next to it then if i press it again it will say 2 any help would be great thanks Dan * - Dave85 - Jul 8, 2013 By storing the counter in database. * - Rydextillxixdiex - Jul 8, 2013 You'll definitely need a database, and the buttons will require a bit of JavaScript. What platform are you using? Basic HTML/CSS or a CMS like WordPress...that plays a big part in determining how to go about this. * - Dave85 - Jul 8, 2013 (Jul 8, 2013 10:15 PM)Rydextillxixdiex Wrote: You'll definitely need a database, and the buttons will require a bit of JavaScript. not necessarily a javascript, you can use a simple form with button (image of course) and send as post or get like traditional form then save in database. * - Rydextillxixdiex - Jul 8, 2013 (Jul 8, 2013 11:08 PM)Dave85 Wrote: not necessarily a javascript, you can use a simple form with button (image of course) and send as post or get like traditional form then save in database. Sure, but ideally you don't want to load a new page, or even leave the existing page for a simple up or down thumb. A la JavaScript. * - danielpherlio - Jul 9, 2013 How could i make a database that will store things from javascript? * - Rydextillxixdiex - Jul 9, 2013 (Jul 9, 2013 07:02 AM)danielpherlio Wrote: How could i make a database that will store things from javascript? This one may be a bit above your head. Can you provide a link to your website? What platform is it using? * - Seaden - Jul 9, 2013 Skip the database, your could store everything in a text file and just use Javascript as Rydextillxixdiex mentioned |