Simple - Poll

Added By: wallabycreek

(3 of 5) by 19.
Thank you for rating this snippet.
Description:  This combination of scripting ideas will popup a poll the first time a visitor hits the page. The polltest.html page sets a cookie in the visitors computer and rechecks for this cookie during subsequent visits. If the cookie exists the popup is bypassed. When the visitor submits a vote in the poll their IP Address is recorded by the UpDate part of the script on pollwrite.asp. If the visitor submits another vote in the poll, while the pop is open, the pollwrite.asp script checks for IP Address and disallows the additional votes by this IP. If a visitor is on a dialup and has their cookies turned off they could conceivably relog and vote again but its just a poll so if they want to go to all that trouble ... view code required and test it here: questions: email
Language:  Visual Basic Script

Save to web space
E-mail Link

Code Snippet: