almightyegg Posted July 23, 2009 Share Posted July 23, 2009 My code is this: $url = "/comm/message.php?id=$newid"; header('Location: $url'); Yet it redirects to: http://www.mysite.com/my_directory/$url How would I get it to process the $url correctly? thanks Link to comment https://forums.phpfreaks.com/topic/167121-solved-header-not-processing-correctly/ Share on other sites More sharing options...
Kieran Menor Posted July 23, 2009 Share Posted July 23, 2009 header('Location: $url'); Use double-quotes. Link to comment https://forums.phpfreaks.com/topic/167121-solved-header-not-processing-correctly/#findComment-881170 Share on other sites More sharing options...
almightyegg Posted July 23, 2009 Author Share Posted July 23, 2009 thank you Link to comment https://forums.phpfreaks.com/topic/167121-solved-header-not-processing-correctly/#findComment-881171 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.