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.
poll.cgi
# configuration section #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.
$polldatafile = "polls.txt";
$selfurl = "http://yoursite.com/cgi-bin/poll.pl";
$password = "yourpassword";
$title = "CGI Polls";
$bodystyle = "<BODY BGCOLOR=\"#ffffff\">";
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!