PDA

View Full Version : PHP Poll



Emancipator
07-06-2005, 10:55 AM
I built a php poll for my site. Features are

- Set Poll Title
- Set 4 Poll options
- Set a Poll Background Image

You can see it in action here http://www.game-reviews.ca left hand column. Its a 30minute poll but I am open to any suggestions on modifications before I release the code.

Blue Cat Buxton
07-06-2005, 12:18 PM
There doesnt seem anything to stop someone voting more than once - That could be a problem

Also with the image you cant seem the scores (other than that looks good with the image behind the form)

Emancipator
07-06-2005, 12:19 PM
using Ie or Firefox? I did not test it out in firefox. And you are right you can vote more then once. I always believe in making equal opportunity code. I make code even for morons :)

lol

Emancipator
07-06-2005, 12:37 PM
Updated:

- Added a check to optimize the code
- Made it so you can only vote once a week on a poll.

Emancipator
07-06-2005, 12:43 PM
Updated

- added text that tells you "you already voted" so you know why you cant vote twice, in case your REALLY slow :)

Blue Cat Buxton
07-06-2005, 01:24 PM
Wow are you quick or what! - did you use cookies for that?

Firefox, btw

Emancipator
07-06-2005, 01:57 PM
yeah i used cookies... why get complicated when you dont have to :)

Mike
07-07-2005, 06:26 AM
I got "We only allow you to vote once on our polls. I know we are evil. So make your votes count!" and I hadn't voted before...

Emancipator
07-07-2005, 06:32 AM
it selectively decided your not allowed to vote :) Dont know what to tell you works fine for me but i will get a couple guinea pigs to test it for me.

The New Guy
07-07-2005, 06:41 AM
I get the same as Mike.

Emancipator
07-07-2005, 11:21 AM
yeah the way i wrote the inclusion file it dont like it :) I took off the vote once for now since its not earth shatteringly important.