gncreditcards wrote:but Al put the script on my website where visitors click on Voting increases the number in the vote of the page and update the site when the increase in the voting to begin again in 1.
Whatever you exactly mean with that sentence... but yes, it begins with 1 again.
As I have stated before
leonard wrote:The more intersting question would probably be where you want to store the data. In the example above it is only stored in a simple formfield of the client.
We are now at the question:
What can HTML do and what not?
In the example we have a static HTML-code. When you put it on a website, the webserver will always return the same code, meaning that the vote-field will always start with '1' for every user who visits the page.
At the moment, the webserver does not know that the button is being pressed, because when it is pressed, the only thing that happens is the number increments within the useragent (Internet Explorer/Firefox of the user).
What you want is that every user visiting the page can see how many times the button 'Vote' has been pressed by others, right?
This means that the information of a user pressing the button must be stored somewhere.
Where do you think the information should be stored?
Answer the question and I will continue to help.
cheers!
- leonard