title: call php function from image onclick?
body: <p>i am a beginner in php scripting...
  can I call php function from img tag by using onclick like this?</p>
  
  <pre><code>&lt;img src="3.png" onclick="myfunction();" /&gt;
  </code></pre>
  
  <p>I tried this:</p>
  
  <pre><code>&lt;a href="vote.php"&gt;&lt;img src="3.png" /&gt;&lt;/a&gt;
  </code></pre>
  
  <p>but it is not working. I do not want to go the the vote.php page. Any ideas ?</p>