You need to do some server side processing and storage of all past votes. That is the real trick of doing this. Using something like
JSP you can have someone vote, with any of the methods you mentioned, and store there vote in a database or text file. Then you can query that database and display how many votes have been casted.
Hope that helps,
Bill