Hi raven,
It ain't gonna happen, at least in the way you hope.
PHP is run at the server and results in (usually) HTML being delivered to the client browser, where javascript can be used.
They are not 'active' at the same point in the whole process.
You could do ...
<script language="javascript" type="text/javascript">
function abc(str){
window.location = "<?php echo $_SERVER['PHP_SELF']; ?>?abc=" + str;
}
</script>
<a href="javascript:abc('Hello');">Click me</a>
<?
if(isset($_REQUEST['abc'])){
echo '<h1>'.$_REQUEST['abc'].'</h1>';
}
?>
... but that's probably not what you want.
Paul 🙂