Log in

View Full Version : Need javascript for my survey page



JK28
03-10-2008, 06:30 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

tmdown
03-10-2008, 09:15 PM
you could use cookies to track whether the person has been there before, and display the survey page content only if they haven't (and otherwise output different content), but it's far from foolproof and easily circumvented. If you're worried about bots messing up the data, you might as well forget about it altogether. Simply disabling cookies would stop this from working.

Your best bet would be to use a server-side language, and track each survey respondent via an email address that they would have to supply.