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  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
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? 
Google.com  
PHP

Creating a Fraud-proof Voting System
By: Ian Felton
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 116
    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:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log 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
     

       

    PHP ARTICLES

    - Getting Data from Yahoo Site Explorer Inboun...
    - Method Chaining: Adding More Selecting Metho...
    - How to Split a File During an FTP Upload Usi...
    - Expanding a Custom CodeIgniter Library with ...
    - Using the Yahoo Site Explorer Inbound Links ...
    - Building a CodeIgniter Custom Library with M...
    - Building an E-mini Trading System Using PHP ...
    - Completing the MySQL Class with Method Chain...
    - Building Dynamic Queries with Chainable Meth...
    - PHP Encryption and Decryption Methods
    - Building a MySQL Abstraction Class with Meth...
    - Completing a Sample String Processor with Me...
    - Mastering WHILE Loops for PHP and MySQL
    - Method Chaining: Adding More Methods to the ...
    - Method Chaining in PHP 5





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek