How to use PHP to control music playback with one button
Using PHP code to respond to click events immediately on a web page (rather than passing parameters) is not very effective. JS code is usually used to complete similar functions.
An example of trying out JS writing is as follows: