Let’s say an user click on a button. The client receive some data that I use latter. If user receive number 2, next time when click again I need to know was 2. The user don’t see this number.
I use hidden input for latter use
or
cookies/sessions
or
other things?
Sessions will work: