What do you do with the var when you finish updating the database? Do you unset it? Are you passing the value of your "submit" button as a default?
Use a few echo statements and find out what's going on. Miles At 07:17 AM 12/9/2001 -0800, ryan adorable wrote: >yup, that is my problem, i can't clear the data on a variable. > >The data is from a <form> tag (radio button). I know you know what im >talking about here :) > >Ryan > >--- Miles Thompson <[EMAIL PROTECTED]> wrote: > > > >Pause for a moment and think about it. You're obviously doing a good job in > >maintaining state, but after your update to the database the var which > >transfers the data isn't being cleared. > > > >Regards - Miles Thompson > > > >At 07:07 AM 12/9/2001 -0800, ryan adorable wrote: > >>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] > >_____________________________________________________________ >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]