CGI Poll

The poll script is designed to operate multiple polls at once.

It manages a list of all polls currently available.  The polls can easily be activated and de-activated by the administrator (password protected).  The script contains all the procedures necessary to add polls, administer current polls (including their deletion from the list).

There are brief ballot and results displays suitable for SSI inclusion.

The HTML presentation is adequate, but not completely out-of-this world.  If you use the script, I'd appreciate it if you send me any nice HTML presentation you develop, and I can incorporate that (with credit) into the script.


Looking for a full-featured database-backed website management and programming tool? Check out another project of mine: Terra Cotta.

Downloading the script

Poll is a free script.  It can be downloaded from this link:
poll.cgi
 


Setting up the script

Installation and setup of the script should be easy. You will need to change several items in the configuration section of the file:
# configuration section #
 

$polldatafile = "polls.txt";

$selfurl = "http://yoursite.com/cgi-bin/poll.pl";

$password = "yourpassword";

$title = "CGI Polls";

$bodystyle = "<BODY BGCOLOR=\"#ffffff\">";

The selfurl string should point to the URL of this script on your site.   polldatafile points to the index files used by the script to manage the polls.  There should be no pressing reason to change it.  password is the password administrators will need to enter to put in new polls and administer existing ones.  title will be put at the top of the pages containing the polls, and bodystyle indicates how the page will be formatted to mesh with the rest of your site.


Demo

You can try out the poll administration interface here.  The password is just "p".

The bottom link in the admin interface will take you to the index of the available polls.  Or you can go directly there from here.


Other CGI scripts and web resources


Use and contribute to....

Able to process submissions faster than a speeding bullet, listing thousands of sites in a single bound!