Hi all, I've a problem with a pop-up script in combination with a "send this page to a friend" php script.
We've an html page, on that html page is some javascript and a link to a pop up window
in that pop up windows there's a php page with a form that sends the link to a friend
we've a variable $link = "$HTTP_REFERER" in that php script
and this doesn't work with the pop up javascript, the variable seems to be empty
it does work with a normal a href= link though
now I wanted to be smart and I made the link in the popup like friend.php?link=$php_self
but this doesn't parse the full url only the part after the domainname
and I need to full url in orde to mail it out to friends
I'm sure somebody here came across a similar problem and can help me out, either by adjusting the pop-up so the php function $http_referer works correct or by a solution for the php_self problem
maybe another function in php? I searched but couldn't find anything usefull