Forum Moderators: coopster

Message Too Old, No Replies

cookie

         

curut

4:30 pm on Jun 13, 2004 (gmt 0)



hi,
how to make script cookie with php to make my polling only work once ( only 1 choice, if the button has been push or be vote)...?
help me please...!

jatar_k

6:07 pm on Jun 13, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld curut,

A cookie can be created with setcookie [ca.php.net] but if the user removes their cookies they can always vote again.

Are these users logged in when they vote? If so you could always store the fact that the user has already voted in your db.

Otherwise setcookie will do what you need.