goatmilk
Posts: 10
|
| Posted: 08/21/2008, 10:10 PM |
|
Hi All
Does anyone know how to create a poll where users can only vote once? I presume I'd start with a login page. After they logged in, they should be able to vote. After that they should not be able to vote on that poll.
Cheers!
|
 |
 |
wkempees
Posts: 1679
|
| Posted: 08/22/2008, 3:56 AM |
|
Well, you do describe quite good what you intend to do.
You would in general have a poll table, storing the poll itself,
Some ID, some description and the questions.
You would aso have a pollreplies table, storing the same poll ID, as well as the given reply.
That table would also have your userid as a field, the combi userid/pollID would be unique and would not allow another insert.
However most polls do not rely on logged in users, but would allow visitor passing by to reply as well.
In that case you would have to store some IP information in the same combi as above.
This method is less strong, as visitors could have changing IP's, cloacked IP's and the likes.
So, it might even be usefull to have a email stored.
Any or all of the above could also help you out.
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
wkempees
Posts: 1679
|
| Posted: 08/22/2008, 3:57 AM |
|
BTW, you could easily find existing poll app on the net in PHP.
Install that and integrate it, iFrame or ob_start() way.
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
|