call a php upon clicking a hyperlink
<p>it is to be checked if a user is logged in before directing to another page after clicking on a hyperlink.</p>

<p>for example :</p>

<pre><code>if(isset($_POST[...])
   foo1(..);
else 
   foo2(..);
</code></pre>

<p>Thank you</p>
