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 Quote Link to comment Share on other sites More sharing options...
Kieran Menor Posted July 23, 2009 Share Posted July 23, 2009 header('Location: $url'); Use double-quotes. Quote Link to comment Share on other sites More sharing options...
almightyegg Posted July 23, 2009 Author Share Posted July 23, 2009 thank you Quote Link to comment 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.