itmohan2002
Status: New User - Welcome
Joined: 07 Dec 2007
Posts: 4
Back to top
Posted: Dec 7, 07, 2:25    How to Restrict voting once per browser using javascript ??
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
jeffd
Status: Assistant
Joined: 04 Oct 2003
Posts: 583
Back to top
Posted: Dec 7, 07, 20:46    
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.
itmohan2002
Status: New User - Welcome
Joined: 07 Dec 2007
Posts: 4
Back to top
Posted: Dec 10, 07, 0:26    
Thankyou for your help.
I done it.
Forums are helping alot.

Thanks,
Mohan
Display posts from previous:   

All times are GMT - 8 Hours