PHP
  Home arrow PHP arrow Creating a Fraud-proof Voting System
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Moblin 
JMSL Numerical Library 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Creating a Fraud-proof Voting System
By: Ian Felton
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 97
    2004-12-21

    Table of Contents:
  • Creating a Fraud-proof Voting System
  • One Person, Multiple Addresses, Still One Vote
  • One Vote.php, Two States
  • Trust but Verify

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Creating a Fraud-proof Voting System


    (Page 1 of 4 )

    Setting up polls or voting systems is a great way to get users more involved in your website, and keep them coming back for more. But with fraud hanging over the professional political elections, how do you keep your visitors from screaming for a recount--or worse, stuffing the ballot box? Ian Felton describes a simple system for setting up an online poll and preventing abuses.

    John Kerry just called. He said the election was full of fraud. Votes were lost. Some were torn up. A nice little old church lady tore mine right in front of me; all for the good of the cause. Fraud plays a huge role in elections, but we programmers want better than that. A fraud-proof voting system can help ensure that the outcome of polls or contests on your site are evidence of what voting is about, determining popular demand.

    At United Bands (http://unitedbands.com/), I run a monthly contest. Fans come to the site and vote for songs they would like to hear on the United Bands play list. The obvious purpose of the system is to determine which songs people like and want to hear more often. Without a fraud-proof system though, skewed results are the norm.

    When a fan browses the band profiles at United Bands, they listen to songs and vote for songs they like. If the system was so basic as to let users just click a button to vote, some people would click it all day or set up a script to run and cast millions of votes for the same song. This type of fraud needs to be eliminated to make the feature enjoyable for people other than those with too much time on their hands or the know-how to run an automated script.

    The process for voting at United Bands is simple enough. Fans can click a link on bands’ profile pages, then enter an email address. If the address and vote are legitimate, it counts as a vote. What is a legitimate vote? Fans are allowed to vote for an individual song once per day. However, the same person can vote for as many songs as they like. So Dick Cheney, or Dick, as I like to call him can come to the site and vote for his favorite band, Vibralux Trans-Mission (http://www.unitedbands.com/bands/Vibralux_trans-mission/), one time on Monday, one time on Tuesday and so on. He can also vote for other bands each day, but again, only one vote per day for each individual band. When Dick submits the form, an email is sent to his posted email address. When Dick checks his email, he clicks the URL in the email as verification of his vote. Then the vote is counted.

    More PHP Articles
    More By Ian Felton


       · You describe as most important requirement of the example that users shall not be...
       · Yup, that's pretty much what they are doing- not allowing folks from the same IP...
       · ... a NOT foolproof way of checking votes, and the only thing unusual from the...
       · "NOTHING is foolproof to a sufficiently talented fool!"
       · I agree. Using a user's IP address as a means of verifying the user, is a classic...
       · "There are a few ways to get around this system. ‘Fraud-proof’ is used in the...
       · That Jeb Bush is governor of Florida does not imply the 2000, or 2004 election was...
       · Thank you.
       · Yes of course, Florida was on the up and up. Katherine Harris, the state's chief...
       · 1 ip 1 vote is an unacceptable requirement for most websites. Sure, it will help...
       · You must surely be right to call this man a moron...In fact, Diebold's CEO DIDN'T...
       · Well, a Democrat, Chad Staton, linked to the NAACP attempted to register George...
       · Creating ballots - no. Removing large numbers of (mainly Democrat) ballots - yes....
       · A governor does not have the power to do that. A governor signs his state's...
       · How come there is no response? Talk about loooooozah! Democrats are whiny pathetic...
       · Peyton, you are really a moron. Good there are people like you to belive on...
       · Let's call each other names now, shall we?I am still interested in how Governor...
       · Can't we all just get along?
       · I second that.
       · http://www.gregpalast.com/detail.cfm?artid=27&row=2The powers in Florida simply...
       · [url=http://archives.cnn.com/2002/ALLPOLITICS/05/28/justice.florida.voting]Read this...
       · What does this have to do with the article?
       · At one time WebTV gave all users one of a handful of IP addresses.Poor WebTV...
       · I've always thought it was funny that just because Bush won Fl and his brother...
       · You should make this voting system as a download...like a zip or something. It...
     

       

    PHP ARTICLES

    - Paginating Database Records with the Code Ig...
    - HTTP Headers in Web Development
    - Project Management: Administration
    - Building a Database-Driven Application with ...
    - User Authentication for a Project Management...
    - Introduction to the CodeIgniter PHP Framework
    - Adding Users for a Project Management Applic...
    - Migrating Class Code for a MIME Email to PHP...
    - Login and Logout Authentication for a Projec...
    - Composing Messages in HTML for MIME Email wi...
    - Project Management: Authentication
    - A Better Way to Determine MIME Types for MIM...
    - Project Management Overview
    - Handling Attachments in MIME Email with PHP
    - Completing the Project Management Application





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway