gaza165 Posted October 8, 2008 Share Posted October 8, 2008 hi guys how can i redirect using this header... i cant seem to write it out properly without an error.... $header = "../blog/".str_replace(" ","_",strtolower($title)); if(empty($name)) { $msg = "You need to enter a name"; header("'Location:".$header."');" } the $header is right... just cant get the thing to redirect back to the right place... thanks Garry Link to comment https://forums.phpfreaks.com/topic/127473-someone-help-with-header-echo/ Share on other sites More sharing options...
DarkWater Posted October 8, 2008 Share Posted October 8, 2008 Why do you have that ridiculous mess of quotes in there? header("Location: $header"); Link to comment https://forums.phpfreaks.com/topic/127473-someone-help-with-header-echo/#findComment-659495 Share on other sites More sharing options...
gaza165 Posted October 8, 2008 Author Share Posted October 8, 2008 I swear to god that i did that but last time it didnt work!!!! HMMM thanks DarkWater Link to comment https://forums.phpfreaks.com/topic/127473-someone-help-with-header-echo/#findComment-659497 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.