|
There are 2 ways that I can think of off the top of my head to do this. One way is to use cookies to remember that a user has already voted. However, users can easily overcome this by simply deleting their cookies and re-voting. This will, however, prevent them from spamming submit a thousand times.
The second way (and more complicated) is to get a user's IP address when they submit their vote. You can store their IP address in a database and if they try to vote again, simply remind them that they have already voted.
You can find information about cookies all over the internet and the same for retrieving and storing IP addresses.
|