Search code examples
phphtmlhyperlinkhtml5-audio

php Detect if html5 play button pressed


In PHP can I detect if the play button is pressed when the html5 audio player opens from a hyperlink

        $line = "<a href=\"$namehref\"><font color='blue'>$name</font></a>";
        echo $line;

Detect play button pressed


Solution

  • PHP is a server-side language that does not have access to client-side events such as clicking on an HTML5 play button.