Web Hosting Talk







View Full Version : Easy PHP Poll script?


Chaps
08-22-2002, 05:25 PM
I have checked Hotscripts.com for a full day at work here and tried tons of different scripts...some come up with errors (i don't know php well enough to fix them), some require databases which I do not have access to.

What I need is a simple poll/voting script which does not require a database, written in php where people can vote, and the results will either pop up in a small window, or show up parsed where the poll was...or not come up at all, and require a person to click on a "view results" link.

Anyone got something I can use here? And no, I'm not willing to pay cash...just asking for a little help. It's for a site I'm designing for work so I'm not willing to pay out of my pocket NOR ask them for cash.

Thanx.

JSpired
08-22-2002, 07:35 PM
The Amazing Little Poll is a super simple php script that does what you need. Here's the link: http://www.evert.jervhost.com/LittlePoll/index.html The results come up immediately after voting.

Chaps
08-23-2002, 12:15 AM
Yeah I tried that one...something happened though that I threw it out...can't remember what cuz I tried like 30 different ones. But i'll take ur advice and try it again. Thanx.

cerebus
08-23-2002, 01:18 AM
My guess is your PHP error_reporting is set to E_ALL and you are complaining about the notices it writes to the screen.

Regards,
Clarence Eldefors
http://cerebustools.com

Chaps
08-23-2002, 01:03 PM
yes...that sounds right...when you hit submit, it shows the results, but has like 4 lines of "something not defined on line ###" or something or other. How do I change that?

Mark-TFL
08-24-2002, 07:03 AM
To change that, you need to add the following line to the top of your script:

error_reporting (E_ERROR | E_PARSE);

If that still doesn't work, I *think* that you can use:

error_reporting (0);

Note: The latter will turn off all error reporting.

Hope this helps