SimplePoll Copyright (c) 1999 Sean Malloy (sean@quake-au.net)

SimplePoll is a new creation. With code and ideas coming from phpPolls
by Till Gerken (tig@skv.org).

I wrote SimplePoll because I am still learning PHP and wanted to test 
out what I've learned so far (albeit not much), I also don't have 
any sort of database access on my website, so I couldn't use phpPolls :( 
I still wanted a poll system for my site though.  With the help of Till's 
code, and a bit of tinkering, I have a Poll script that will run on 
Win32/*NIX, and does not have any requirements other than PHP 3.0 
(3.0.6+ I guess?).

If you have MySQL database access, check out Till's Poll, phpPolls at:
http://www.phpwizard.net/phpPolls

SimplePoll is designed to fit into my site, but with some mucking around, you
could easily adapt it into your own site. The next version will be much more
user friendly and configurable.

At the moment there is no administration script for the Poll. This is on the
to-do list.. So to create a poll, all you have to do is edit polldata

The lines:

Line #1: Your Question
Line #2: RandomNumber|||NumberOfQuestions
Line #3: Question1|||Question2|||Question3|||Question4
Line #4: 0|||0|||0|||0

I think you should be able to work it out.. Generate RandomNumber by time();
The rest is hand edited.. an example poll would be:

Line #1: Do you use php?
Line #2: 927801796|||3
Line #3: Yes|||No|||What's PHP?
Line #4: 0|||0|||0

oh, and, the polldata file must exist. otherwise the script will tell 
you to run the config script (which doesn't exist yet :))

If you do use this program on your site, could you mail me and let me know?

Otherwise, enjoy!

Sean
http://www.quake-au.net/php/ - My Stuff
