Greetings, colleagues. Explain the essence of the question. There is currently a button "Panic Button", when pressed, plays the sound and the button text changes to "Panic Button - ACTIVE". You need to make it so that when it is pressed, it is keeping track of who clicked it. There is a session $_SESSION['name']; it contains login, how to track and remember to have all users wrote who pressed the button? Perhaps the wording is not clear, if what you say that is not clear. Thanks previously for the help :>
That is, you made a room where anyone can press it? If Yes, then you need to the user has been registered, and then make a start on this, maybe I'm wrong.
mekhi72 answered on April 4th 20 at 01:04
Write the nickname of the user in the database or in a text file and from there get the rest
timothy_Pfannerstill63 answered on April 4th 20 at 01:06
The button should send the form with a hidden aydishnik user
Reanna.Wintheis answered on April 4th 20 at 01:08
Don't know how long for you it will be difficult, but possible via ajax to send the request to the handler (keep the state of pressing can be in a separate table in the database, in any user settings (if any), or cookie), then when the page is loaded to the down state and change the button text based on the value.