Hi folks.. new PHP'er here.. I have created a PHP 'shoutbox' and a couple of my friends have linked to it using an iframe. The IFRAME is hosted on my site. I want to be able to capture the URL of the page that initiated the shoutbox post.
I have tried various $SERVER[xxxx] and it just seems to return MY url.
I think I need javascript and I am trying along these lines but majorly failing!
$cur_host = <script language="JavaScript">parent.location.href;
</script>
How can I define the current parent URL of MY iframe and return it to PHP?
As I said.. I am VERY new at this but have a major interest..