Problems
I thnk the answers for these questions are to long for stackoverflow.
I'd recommend storing the votes in a Database.
You don't mention a server-side programming language.
please give us some more information
This might help you get started