onclick in jquery
<p>I am trying to use jQuery with PHP, like this:</p>

<pre><code>&lt;th bgcolor="#FFCC00" align="center"&gt;
    &lt;a href="" title="Sort" name="fname" id="fname" &gt;First Name&lt;/a&gt;&amp;nbsp;
    &lt;?php if($_REQUEST['o']=="fn"){ ?&gt;&lt;img border="0"  id="b1" /&gt;&lt;?php } ?&gt;
&lt;/th&gt;
</code></pre>

<p>jQuery code:</p>

<pre><code>$('#fname').click(function() {
    alert ("come");
    &lt;?php if ($_REQUEST['o'] == "fn") { $_SESSION['clicked'] = "fn"; } ?&gt;
    window.location = '&lt;?php echo $redirect ?&gt;Clients.php?o=fn';
return false;
</code></pre>

<p>But it doesn't work. Thank you for any help.</p>
