Adding a vote button to a page

Discussion in 'HTML & Website Design' started by anonymous479, Jul 10, 2012.

  1. #1
    Im trying to host a contest and each nominee gets a profile page on my site. How do I go about adding a 'vote button' on each page where the results could be visibly tracked?
     
    anonymous479, Jul 10, 2012 IP
  2. mneodor87

    mneodor87 Member

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    28
    #2
    First, what type of CMS are you using? Depending on your setup it may be easy...or require lots of manual work.

    What you'd need is a database that tracks the vote counts for each person. You'd then need to make a button in the HTML and have it increase the vote count when pressed. Finally, you'd have a display area somewhere that would pull in the current data and make it visible. I would search Stack Overflow for code or a tutorial since I'm sure it's been asked there before.
     
    mneodor87, Jul 11, 2012 IP