Jump to content

Retrieving previous URL


Recommended Posts

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

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 :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.