Re: Prevention for multiple submissions from the same form

From: Date: Mon, 08 Oct 2007 09:12:35 +0000
Subject: Re: Prevention for multiple submissions from the same form
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-44175@lists.php.net to get a copy of this message
TG napsal(a):
But what if the data being inserted isn't unique? What if it's a voting form that says "Do you like pie? Yes/No"? True, it could record the response and the userid or IP address so that would be a unique pairing but what if the vote was anonymous and you allowed multiple people from the same IP address (ie behind a firewall/proxy) to submit votes? simple solution with timestamp - you allow to vote from 1 ip once in a given time (day, hour, minute, second, depends on you)
There could be cases where the data isn't necessarily unique Sorry, I dont know any.


« previous php.db (#44175) next »