The ASP Emporium
Free Active Server Applications and Examples by Bill Gearhart
Online since Friday January 7, 2000

 home > code > classic asp apps > Survey and Poll System

enter a phrase to search:(advanced search)


 h o m e 

 w h a t 's  n e w 

 a l l   c o d e 
  .net:
    • Fundamentals
    • C# Classes
  classic asp:
    • Code Library
    • ASP Apps
  general:
    • Tutorials
    • SQL

 d o w n l o a d s 

 u s e r   f o r u m s 

 l i n k s 

 s e a r c h 

 s u p p o r t 


Survey and Poll System

This application can handle an unlimited amount of polls which are stored in a database. Each poll or survey can have up to 5 possible answers although this can be changed easily. Currently coded to allow users to only vote in one survey per session. When this page is displayed, a random survey is selected from the group in the database.

Version 3.0 released on February 16, 2003
  • Complete rewrite using a VBScript Class design.
  • Users can now vote one time per survey per session instead of one vote total per session.
  • Surveys are now randomized based on the total number of surveys in the database. Old versions of the class randomized an id between 1 and 2 which required manual re-coding.
  • Database connection strings are now properties of the class rather than hardcoded session variables which were problematic.
  • All known security issues were repaired.

What is your favorite programming language?
view results