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. 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); 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 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 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
Archived
This topic is now archived and is closed to further replies.