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 Quote Link to comment Share on other sites More sharing options...
requinix Posted September 16, 2011 Share Posted September 16, 2011 Look in $_GET... Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
hjvanes Posted September 16, 2011 Author Share Posted September 16, 2011 Thank you kindly and it worked. 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.