Best way to code a poll?

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
kinger88
Forum Newbie
Posts: 12
Joined: Thu Apr 09, 2009 10:08 am

Best way to code a poll?

Post by kinger88 »

Hi,

I need to build an online poll for some awards, and was thinking about ways to ensure people can only vote once.

Is it best to store the I.P address or is there another way?

Cheers
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: Best way to code a poll?

Post by josh »

Ip addresses are easily spoofed, do you have questions as to how to incrementally accrue the statistics? Just store the total rolling # and keep incrementing it, for voting only once the most secure way would be to combine IPs with emails, require activation, ask for addresses & phone #s, have moderators skim over the signups and have the ability to revoke votes if they are found to be fraudulent... I guess it depends if this is for some poll on a forum, or if your system is being used to vote the new CEO for a corporation where you need heavy auditing, etc..
kinger88
Forum Newbie
Posts: 12
Joined: Thu Apr 09, 2009 10:08 am

Re: Best way to code a poll?

Post by kinger88 »

Thanks for the reply

These awards have been done before and some people managed to vote for themselves 500 times so i need to make sure this doesn't happen again

Will try it with email addresses and activation, then store the I.P too

Cheers
Post Reply