HTML to jQuery to PHP, then from PHP to jQuery to HTML
<p>Ok, I have this code:</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
 function get() {

    $.post('tt.php', { name : $(this).attr('id') }, function(output) {
        $('#age').html(output).show();
    });
}

&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;input type="text" id="name"/&gt;
&lt;a id="grabe" href="javascript: get()"&gt;haller&lt;/a&gt;
&lt;div id="age"&gt;See your name&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Here's what I want: get the id of an anchor tag from the anchor tag that has been clicked by the user via jQuery and then past that to a PHP file. The PHP file will then echo the id name of the anchor tag that was clicked by the user back to the jQuery which will then display the output into the specified element.</p>

<p>Here's the PHP file:</p>

<pre><code>&lt;?
$name=$_POST['name'];

if ($name==NULL)
{
echo "No text";
}
else
{
echo $name;
}
?&gt;
</code></pre>
