blinks Posted April 14, 2010 Share Posted April 14, 2010 Can anyone explain why this bit of code works - header("Location: http://localhost/workflow/new.php?cat=select_workflow"); but this doesn't - $url = "http://localhost/workflow/new.php?cat=select_workflow" header("Location: $url"); nor does header('Location: '.$url); TIA Link to comment https://forums.phpfreaks.com/topic/198461-header-question-not-a-headers-already-sent-question/ Share on other sites More sharing options...
AdRock Posted April 14, 2010 Share Posted April 14, 2010 Are you not getting an error on this line? $url = "http://localhost/workflow/new.php?cat=select_workflow" no semi colon Link to comment https://forums.phpfreaks.com/topic/198461-header-question-not-a-headers-already-sent-question/#findComment-1041393 Share on other sites More sharing options...
blinks Posted April 14, 2010 Author Share Posted April 14, 2010 Gosh, that was it! Thank you! <banging my forehead!> Link to comment https://forums.phpfreaks.com/topic/198461-header-question-not-a-headers-already-sent-question/#findComment-1041398 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.