I have some HTML files, and what I want to do, is put something like the following, inside the <head>
section of the html document:
<script href="myphpfile.php" />
and then somewhere on my page, I want to call a PHP function from an onclick event, like so:
<a onclick="performPhpFunction();" href="javascript:void(0);">Do something</a>
How can I do this?
I don't know why, but when searching for a solution tonight, I cannot seem to find one, and I have seen this many times, but forgot how it was done, and now I don't remember which websites I saw it on.