Running a php code after User clicks a button? [closed]

You can wrap your code in a function and use a button to activate it. Create a button and assign a function to it’s onclick event: <span onlclick=”javaSubscribe();”>Subscribe</span> Now, make an AJAX request to your server after clicking the button: function javaSubscribe() { // We need the ID for user and tag. Let’s retrieve it … Read more