CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Voting Poll

Print topic Send  topic

Author Message
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!
View profile  Send private message
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
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.