PHP jQuery value problem
<p>I have problem to send value from php to jQuery script.</p>

<p>PHP looks like that:</p>

<pre><code>echo "&lt;a id='klik' value='".$row['id']."' onclick='help()' href='http://www.something.xx/tag/".$row['link']."'&gt;".$row['name']."&lt;/a&gt;&lt;br&gt;";
</code></pre>

<p>and script jQuery:</p>

<pre><code>function help(){    
var j = jQuery.noConflict();

var zmienna = j('#klik').val();
alert(zmienna);
j.post('licznik.php',{id:zmienna}, function(data) {
    alert(data);
});

 }
</code></pre>

<p>licznik.php</p>

<pre><code>    $p=$_POST;
    $id=$p['id'];
    echo $id;
    $wtf = "UPDATE tag_content SET wyswietlenia=wyswietlenia+1 WHERE id='$id'";
    $result = mysql_query($wtf);
</code></pre>

<p>And as I tested, it has problem at the begining (alert(zmienna); doesn't work, shows nothing). How to fix it? 
Thx for help and if u want more informations (like more code etc.) let me know.</p>
