Not sure if this should be in the PHP forum or here but here goes...

I'm trying to get this to work but with no luck...
Code:
<script type="text/javascript">
var lala = top.location.href; 
</script>

<?
$topurl = $_GET['lala'];
echo 'Whats the url:'.$topurl;
?>
What I'm trying to accomplish is to get the parent url from within an iFrame using PHP... I have surfed around the net and found that using javascript would work, but I'm not getting the javascript variable into the PHP...? Why? and are this the right way to go?!?!?

Thanks in advance :-)