otuatail Posted February 11, 2009 Share Posted February 11, 2009 Hi. i am trying to use eader('Location: with parameters but it dosn't work header('Location: details.php?id=' . <?=$ID?>); how do I pass in the ID Des. Quote Link to comment https://forums.phpfreaks.com/topic/144817-solved-how-to-add-parameters-into-a-header-location/ Share on other sites More sharing options...
premiso Posted February 11, 2009 Share Posted February 11, 2009 header('Location: details.php?id=' . $ID); Quote Link to comment https://forums.phpfreaks.com/topic/144817-solved-how-to-add-parameters-into-a-header-location/#findComment-759914 Share on other sites More sharing options...
otuatail Posted February 11, 2009 Author Share Posted February 11, 2009 No this dosn't work echo "Event: " . $_SESSION["Event"]; Result Event: 5 header('Location: display.php?id=' . $_SESSION["Event"]); Won't redirect at all stays on page Quote Link to comment https://forums.phpfreaks.com/topic/144817-solved-how-to-add-parameters-into-a-header-location/#findComment-759984 Share on other sites More sharing options...
The Little Guy Posted February 11, 2009 Share Posted February 11, 2009 No this dosn't work echo "Event: " . $_SESSION["Event"]; Result Event: 5 header('Location: display.php?id=' . $_SESSION["Event"]); Won't redirect at all stays on page You can't have an echo above a header Quote Link to comment https://forums.phpfreaks.com/topic/144817-solved-how-to-add-parameters-into-a-header-location/#findComment-759996 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.