homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Is it possible to make a voting system, based in HTML?

 8:45 am on Mar 5, 2011 (gmt 0)

I am making a website, and want people to be able to rate things on that website.

I want the rating to be a number that goes up by 1 every time that someone votes for that thing.

I don't know how to do this. I know, I am making a website with only a basic understanding of HTML, and have no formal training, but I can't afford to pay someone else.

Could anyone possibly help me out with this? I have searched for HTML tutorials on this subject, and cannot find any.



 9:02 am on Mar 5, 2011 (gmt 0)

HTML helps you lay out the content on the page, and style it.

To have a voting system, you will need to run some PHP code on the server to deal with the counting. That code will either need to store data in a file on the server, or it will need a dash of mySQL code to store and retrieve the data in a database. The code will also need to be protected from page refreshes artificially increasing the vote: by letting each IP address vote only once per day, setting cookies etc.

Javascript is NOT the solution to the problem as that runs individually in each person's browser.


 9:52 am on Mar 5, 2011 (gmt 0)

Thanks. I will try to look for some information on PHP, I have only worked with PHP on Wordpress. Hopefully I can figure out what I need to do.


 9:57 am on Mar 5, 2011 (gmt 0)

There are likely fragments of code you can use already published somewhere.

I'd take a look at code.google.com and other such places. They could save you a lot of work.

I recently needed some code to read a CSV file and parse it into an array. I found what I needed within an hour, and had it working within a day.


 10:41 am on Mar 5, 2011 (gmt 0)

Awesome! I actually usually use websites like w3schools or whatever comes up in a Google search... I will try code.google.com.

I suppose I can trust your judgement, you've been here for nearly 9 years!


 1:47 am on Mar 10, 2011 (gmt 0)

An alternate to a PHP approach is Perl. Will do what you're seeking and many examples on the web.


 10:05 pm on Mar 10, 2011 (gmt 0)

There are lots of ratings scripts available free on the web. A Wordpress or other CMS plugin would probably be your best bet. There are also rating scripts for jquery and Google's Friend Connect.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved