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? Quote Link to comment 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... Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.