[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] poll for server's users



> I know there are a lott poll-scripts available.
> However, I would like to setup a poll so that only users with a valid
> account can vote and only once.
> Anybody now how to?
> Thanks.
> --
> Maurice de Laat

Depends how your authentication script works really, if you can catch the
data as they log in via a mysql table you can then set up a little database
to say he/she logged in and has or has not voted, alternatively you could
look the same way via their IP address (not so good if a lot are on dial
ups) or another way is via a cookie to the users system saying they have
already voted (assuming all your users will allow cookies).
The little database method implemented in PHP / MySQL would be route I would
take as it is likely to give the most accurate results, plus if they have
voted you could make the form conditionally vanish from their view.

It's pretty unlikely that you would find an "off the shelf" poll script that
woud work directly with your authentication system without some
modifications.

Phil

** http://www.diygear.com THE Online DIY Toolstore For DIY & Business
** Infolink Electronic Systems Ltd. http://www.infolinkelectronics.co.uk
** Professional Web Design & Cobalt Hosting Solutions
** Sun Cobalt iForce Reseller - Canon Silver Reseller
** Contact: Sales@xxxxxxxxxxxxxxxxxxxxxxxxx
** Tel / Fax 0121 458 4894 (office) 0121 441 3558 (home)