Liquid Fire Posted January 6, 2007 Share Posted January 6, 2007 Not sure if php can do this or if i need to use javascript but how can i get the full url of the previous page? I need to for a redirect on my site. Quote Link to comment Share on other sites More sharing options...
Hypnos Posted January 6, 2007 Share Posted January 6, 2007 $_SERVER['HTTP_REFERER'] Quote Link to comment Share on other sites More sharing options...
taith Posted January 6, 2007 Share Posted January 6, 2007 [code]<?function get_referrer(){ if(!$ref=@$HTTP_REFERER) $ref=$_SERVER['HTTP_REFERER']; return $ref;}?>[/code] 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.