Thanks Sharif. It seems there is one other change needed to make it show the results properly after the user casts a vote. In "dopoll.php" the line that says:
[:blue]$ref .="&what=$prog&vc=1&poll=$pollname";
should be changed to
[:blue]$ref .="&what=$prog&vc=1&poll=" . rawurlencode($pollname);
Also, just to clarify your fix - it appears that each file has two if-statements that need to be adjusted. Alternatively, you can can look for the line like:
[:blue]list ($Number,$Posted,$Username..., $Poll, ...) = $dbh -> fetch_array($sth);
and add after it:
[:blue]if ($Poll) { $Poll = rawurlencode($Poll); }
Bill Dimm,
SaveTheFreeWeb.com