Log in

View Full Version : Need javascript for my survey page



JK28
03-10-2008, 06:35 AM
Hi,

I have a survey page, and i want people who has submit the survey CAN NOT access my survey page again. So, a person can only submit the form only once. Perhaps with a pop up window note saying "Ups Sorry,it seems that you have submit the survey, you are not allowed to do it again"

Any javascript for this? Thanks

JK

codeexploiter
03-10-2008, 06:43 AM
You can apply a IP based restriction for your survey page. But it is better if you consider a server-side tool like PHP rather than a client-side tool like JavaScript for the purpose.

JK28
03-10-2008, 07:06 AM
thanks codeexploiter, im thinking perhaps a simple javascript that can recognize a cookies. btw do you have a sample/demo page or a tutorial for this IP based restriction?