Hi.
The suggestion quill posted is probbly the simplest way, which I use quite frequently myself.
There are more complex ways, however, using javascript and / or Ajax.
Just for fun, this a way to complex way to do what you need.
[PHP]
<script language="javascript">
function send_tag(id)
{
// Create form
var form = document.createElement("form");
form.setAttribute("action", "#");
form.setAttribute("method", "post");
// Create element
var elem = document.createElement("input");
elem.setAttribute("type", "hidden");
elem.setAttribute("name", id);
elem.setAttribute("value", document.getElementById(id).innerHTML);
// attach the elements
form.appendChild(elem);
document.body.appendChild(form);
// submit
form.submit();
// Delete the form
document.body.removeElement(form);
}
</script>
<a id="link" href="#" onClick="javascript: send_tag(getAttribute('id'));">I will be passed</a>
<p>
<?php
if(isset($_POST['link']))
{
echo "Passed data = ". $_POST['link'];
}
?>
</p>[/PHP]