Re: Form refresh problem
| From: | Richard Lynch | Date: | Sat, 20 Jan 2001 09:39:44 +0000 |
| Subject: | Re: Form refresh problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-35795@lists.php.net to get a copy of this message | ||
> My problem is that a user, having voted once, can keel clicking refresh in
> their browser and the form data keeps getting sent, incrementing the poll
> results each time
> Is there a way to kill form data once it;s been posted, or is there a
better
> way of doing what I am trying to accomplish?
The easiest way to stop most multiple votes is to send them a Cookie when
you get their vote.
If they have that Cookie, they can't vote again.
That won't stop a semi-serious cheater -- He'll just not accept the Cookie
or delete it after he gets it or...
If you need better than this minimal "honesty" factor, it gets tricky...
And *NOTHING* online (via HTTP, anyway) can be anywhere close to a reliable
voting method. Even Florida had it better. :-)
By Day: |By Night:
Don't miss the Zend Web Store's | There's not enough room here...
Grand Opening on January 23, 2001! | Start here:
http://www.zend.com | http://l-i-e.com/artists.htm