will35010 Posted October 13, 2010 Share Posted October 13, 2010 The org variable holds the value of the folder name. The problem is that the header is sending out ".$org." and not the actual value of $org. Example output url: http://127.0.0.1/application/".$org."/display/trackingboard.php I want this url if the value is test: http://127.0.0.1/application/test/display/trackingboard.php Thanks! $org = "test"; header('Location: ../application/".$org."/display/trackingboard.php'); Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted October 13, 2010 Share Posted October 13, 2010 The problem is that you've opened your string with single quotes and closed it with doubles. Try: header('Location: ../application/'.$org.'/display/trackingboard.php'); Quote Link to comment Share on other sites More sharing options...
Philip Posted October 13, 2010 Share Posted October 13, 2010 header('Location: ../application/".$org."/display/trackingboard.php'); should read: header('Location: ../application/'.$org.'/display/trackingboard.php'); Bah, Ginger beat me to it As a note though, you can easily tell when you run into this when you use a syntax highlighter. Quote Link to comment Share on other sites More sharing options...
will35010 Posted October 13, 2010 Author Share Posted October 13, 2010 The problem is that you've opened your string with single quotes and closed it with doubles. Try: header('Location: ../application/'.$org.'/display/trackingboard.php'); Thanks! That was it. It's always the little things that get you...lol. Quote Link to comment Share on other sites More sharing options...
will35010 Posted October 13, 2010 Author Share Posted October 13, 2010 header('Location: ../application/".$org."/display/trackingboard.php'); should read: header('Location: ../application/'.$org.'/display/trackingboard.php'); Bah, Ginger beat me to it As a note though, you can easily tell when you run into this when you use a syntax highlighter. Thanks! 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.