Execute a PHP function from image OnClick event
<p>I have a PHP class in which there is a <code>delete</code> function. When I click on the image I want to call <code>delete</code>, but this line is not working:</p>

<pre><code>echo "&lt;img src='icon/del.gif'  onClick='.delete().'/&gt;"
</code></pre>

<p>I have tried using the <code>href</code> tag but it doesn't work.</p>
