hjvanes Posted September 15, 2011 Share Posted September 15, 2011 Hello PHPers, Need help. I am using $_SERVER['REQUEST_URI']; in order to obtain the URL that the visitor came from. No matter what I try to change I get more info than required. IE. mojo/mojo.php?width=640&height=480&doc_location=/&doc_title=Marc%20Rob&doc_refer=http%3A//www.aaa.com.au/rob.html instead and what I should be getting is just http://www.aaa.com.au/rob.html Could somebody please help me and let me know why this is appearing with the extra info which I do not want. Thank you. HJ Link to comment https://forums.phpfreaks.com/topic/247236-_serverrequest_uri/ Share on other sites More sharing options...
requinix Posted September 16, 2011 Share Posted September 16, 2011 Look in $_GET... Link to comment https://forums.phpfreaks.com/topic/247236-_serverrequest_uri/#findComment-1269743 Share on other sites More sharing options...
btherl Posted September 16, 2011 Share Posted September 16, 2011 Specifically, $_GET['doc_refer'] should have the value you're looking for. Link to comment https://forums.phpfreaks.com/topic/247236-_serverrequest_uri/#findComment-1269750 Share on other sites More sharing options...
hjvanes Posted September 16, 2011 Author Share Posted September 16, 2011 Thank you kindly and it worked. Link to comment https://forums.phpfreaks.com/topic/247236-_serverrequest_uri/#findComment-1269752 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.