how to run php code onclicking an image
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1280767/how-do-i-run-php-code-when-a-user-clicks-on-a-link">How do I run PHP code when a user clicks on a link?</a>  </p>
</blockquote>



<p>I have an image .</p>

<pre><code>&lt;image name="" src=""&gt;
</code></pre>

<p>I have a <code>php</code> code that needs to be run only after the image has been clicked.</p>

<pre><code>&lt;?php

$var = somthing;
if(condition)
{
    sql stmts;
}

?&gt;
</code></pre>

<p>like that.</p>

<p>Both are in the same php page. PLease help me to sort out this problem.</p>

<p>Thanks..</p>
