I need to call a PHP function as simply as possible with OnClick
event:
<button onclick="Function(5)">Call PHP function</button>
I searched for the answer, but could not find it. I think I have to use AJAX or something, but I have no experience with it. Please give me an example as simple as possible on how to call a PHP function with parameter using OnClick
event.