I have a button on my page :
<button class="play"></button>
When I click on it, it launches the video via jQuery
$('.play').on('click',function(){
player.play();
});
But I also want to add PHP code to save the user ID in the database when he clicks on that button.
How can I mix PHP & jQuery? I'm not used to Ajax, is it the solution?
Thanks for your help!