dennismonsewicz Posted July 1, 2008 Share Posted July 1, 2008 I have developed an email script that grabs the previous url and drops it into the php email. The problem is, is that the company that has implemented my code is using javascript to open up a new window to fill out the form i created. When doing this the HTTP_REFERRER $_SERVER variable is lost. Anyway of still requesting the referred url? Link to comment https://forums.phpfreaks.com/topic/112762-retrieving-previous-url/ Share on other sites More sharing options...
webent Posted July 1, 2008 Share Posted July 1, 2008 Without seeing your code it is hard to say, but if you can pass the variable to Javascript via a function as you're opening it up... Link to comment https://forums.phpfreaks.com/topic/112762-retrieving-previous-url/#findComment-579127 Share on other sites More sharing options...
dennismonsewicz Posted July 1, 2008 Author Share Posted July 1, 2008 problem solved I added this little bit of code: popUpWindow('../email/emailafriend.php?url=<?php echo "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; ?> And then i passed the variable to my emailafriend page and it all works Link to comment https://forums.phpfreaks.com/topic/112762-retrieving-previous-url/#findComment-579135 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.