How to Restrict voting once per browser using javascript ??
itmohan2002
Status: New User - Welcome
Joined: 07 Dec 2007
Posts: 4
Reply Quote
Hai all,

Iam conducting a survey in my project.
In that , I have to restrict the user to post Vote once in a browser.

In the same browser, he wouldnt post more than once.

How to do that ??

thanks in advance.

Mohan
Back to top
jeffd
Status: Assistant
Joined: 04 Oct 2003
Posts: 594
Reply Quote
You set a javascript cookie using our javascript cookies script.

However, we don't write people's code for them.

the basic idea is simple: on completion of the signup or counting form, you set a cookie, either server side with something like php, or client side, in the user browser, with javascript.

Check the form page for the presence of the completed action cookie, and if not present show the form, otherwise show some other message, such as you can only do this once.
Back to top
itmohan2002
Status: New User - Welcome
Joined: 07 Dec 2007
Posts: 4
Reply Quote
Thankyou for your help.
I done it.
Forums are helping alot.

Thanks,
Mohan
Back to top
Display posts from previous:   

All times are GMT - 8 Hours