Is it possible to implement a change in the value of a variable that will be stored on the server and can I use this value?

Suppose I need that by clicking on an element, the value is increased by 1. And what would be stored how many pressed this button. Such a kind of counter.

  • You can store the number of clicks in the session - user2455111
  • or in cookies, or in a text file. - Jean-Claude
  • one
    After the PHP script has completed, your variable no longer exists. Therefore, you can use sessions, cookies, cache, database, etc. to store information. Without the context of the task it is not clear what exactly suits you. - SlyDeath

0