PHP Tutorial: Simple Rating / Voting System
The end of this tutorial series you say there will be a bit integrating a user system so users an only vote once? This is really crucial and would love to know how to do it as I can't quite figure it out?
Peace
Ed
Where is tut regarding users only being able to vote once?
Re: Where is tut regarding users only being able to vote onc
Get on it Jacek! You the manjacek wrote:I guess I never got around to it
-
- Posts: 534
- Joined: Thu May 05, 2011 8:19 pm
Re: Where is tut regarding users only being able to vote onc
Its fairly simple.
There are a couple of methods that would work, some temporary. Some permanent (ish)
Temp:
Use cookies
More Perm (but not fully, ie. dynamic IP)
Record their IP along side their vote, and then do a check to see if they have voted (IP is stored)
Another method:
Using HTML 5, store in the browser web database that they've voted.
There are a couple of methods that would work, some temporary. Some permanent (ish)
Temp:
Use cookies
More Perm (but not fully, ie. dynamic IP)
Record their IP along side their vote, and then do a check to see if they have voted (IP is stored)
Another method:
Using HTML 5, store in the browser web database that they've voted.
I don't like to brag, but I wasn't circumcised. I was circumnavigated.
Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9
Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9