What you need to do is make sure the same person doesn't vote twice
either via cookie, session, or comparing IP address.  These are all
simple solutions.  For example, if the IP address is the same as stored
in the DB, then the person as tried to vote twice, and you can prevent
that.

Jason Lotito
[EMAIL PROTECTED]
www.NewbieNetwork.net

> -----Original Message-----
> From: ryan adorable [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, December 09, 2001 10:07 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Help!
> 
> 
> Hi,
> 
>    I created a poll program for my homepage. When i vote some
> field in my database gets incremented, but after successfully 
> voting when i clicked on reload/refresh of my browser the 
> said field is also incremented. How can I fix/avoid this problem?
> 
>    Hoping for a reply.
>    Thanks
> 
> Ryan
> 
> _____________________________________________________________
> Sign up for FREE email from FloppyDisk at
> http://www.floppydiskonline.com
> 
> --
> PHP General Mailing List 
> (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] To contact the list 
> administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to