Limiting Poll Responses

J

Jet

Front Page 2002 - I set up a very simple "Yes / No" poll which works fine.
How do I limit a user from taking the poll to only 1 time per day? Currently
I manually go through the database and delete repeated entries submitted from
the same IP that are only 5 seconds apart on the date and time stamp. I
believe it is done through cookies but have no idea how to do it.
 
M

Mark Fitzpatrick

You'd have to do a bit of programming. Probably the easiest thing would be
to set a cookie once they submit the form that says they took the poll and
have it expire at the end of the current day. When the page loads you would
have to test for this cookie and if it's there, disable the form. I haven't
looked to see if there are any javascripts for this since I do mostly
server-side stuff, but there may be some free javascripts out there to help
out. Check javascript.internet.com

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top