Monday, 19 September 2016

html - Detect click on via PHP




Is there a way to detect a click on a HTML button in PHP, or do I really need to put a form tag around the element and make it an input submit button.






OR






Thanks in advance.


Answer



PHP is a server-side language. If you'd like to tell a server-side script about clicks on HTML elements, you have to either submit the form or use AJAX.



No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...