Forums
This topic is locked
prevent user from polling more than once..
Replies
Replied 14 Feb 2003 09:59:02
14 Feb 2003 09:59:02 Nicholas Bennett replied:
HI Mufcterry,
I have done something similar on one f my clients sites, the way i did it was to set a permenant cookie once they had voted, then if they try to vote again i checked to see if a cookie existed and if it did a new vote will not be added only the results of the poll so far.
Read up on setting and reading cookies here ( www.php.net/manual/en/function.setcookie.php )
Good luck!
I have done something similar on one f my clients sites, the way i did it was to set a permenant cookie once they had voted, then if they try to vote again i checked to see if a cookie existed and if it did a new vote will not be added only the results of the poll so far.
Read up on setting and reading cookies here ( www.php.net/manual/en/function.setcookie.php )
Good luck!