emehrkay Posted November 9, 2006 Share Posted November 9, 2006 previous page?$_SERVER['HTTP_REFERER'] doesnt work.all i am doing is a header('Location: '); call any ideas?thanks Link to comment https://forums.phpfreaks.com/topic/26648-if-i-use-a-header-to-redirect-to-another-page-what-do-i-use-to-reference-the/ Share on other sites More sharing options...
bqallover Posted November 9, 2006 Share Posted November 9, 2006 It's a bit of a kludge but you could use[code]$this_page = urlencode( $_SERVER['SCRIPT_NAME'] );header("Location: destination.php?ref=$this_page");[/code] Link to comment https://forums.phpfreaks.com/topic/26648-if-i-use-a-header-to-redirect-to-another-page-what-do-i-use-to-reference-the/#findComment-121907 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.