title: Click image to call php function
body: <p>I need to click an image and it should run some php script that sets a php variable and reloads the same page.</p>
  
  <p>I know it sounds simple but i've tried every different way I can think of and i'm guessing it's just something basic i've missed.</p>
  
  <p>I've tried onclick of the image, a href and a onclick, making the image the 'submit button' of a form etc..</p>
  
  <p>Any response would be appreciated.</p>
  
  <pre><code>&lt;a href="#" class='lang'&gt;&lt;img src="/images/flags/it.png" alt="it_IT" /&gt;&lt;/a&gt;
  &lt;a href="#" class='lang'&gt;&lt;img src="/images/flags/fr.png" alt="fr_FR" /&gt;&lt;/a&gt;     
  </code></pre>
  
  <p>I want the image alt value to pass it,
  How it is possible please give some idea..</p>