EchoFool Posted September 22, 2011 Share Posted September 22, 2011 IS there a way to include the GETs for HTTP_REFERE? I often use it as a "go back" link but it doesn't include the GETs that were in the url which is a pain... Any ideas? This is what i use: <a href="<?php echo $_SERVER['HTTP_REFERER'];?>">Go Back</a> Quote Link to comment https://forums.phpfreaks.com/topic/247630-http_referer-with-gets/ Share on other sites More sharing options...
MasterACE14 Posted September 22, 2011 Share Posted September 22, 2011 why not just append them? <a href="<?php echo $_SERVER['HTTP_REFERER'] . '/' . $_GET['something'];?>">Go Back</a> Quote Link to comment https://forums.phpfreaks.com/topic/247630-http_referer-with-gets/#findComment-1271644 Share on other sites More sharing options...
EchoFool Posted September 22, 2011 Author Share Posted September 22, 2011 Well because how can i check what GETs are set in order to put them in to the href? Quote Link to comment https://forums.phpfreaks.com/topic/247630-http_referer-with-gets/#findComment-1271645 Share on other sites More sharing options...
Pikachu2000 Posted September 22, 2011 Share Posted September 22, 2011 $_SERVER['QUERY_STRING'] Quote Link to comment https://forums.phpfreaks.com/topic/247630-http_referer-with-gets/#findComment-1271714 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.