Sunday, 25 February 2018

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

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...