langenf Posted September 13, 2008 Share Posted September 13, 2008 hi, i have a file in app \scripts folder that checks if the user is logged and if not redirects the user to the index.php in the app folder. header("Location:../index.php?message=login to continue"); but it goes to the the topmost area(root). im using windows and the app folder is in the root. sorry for asking this here, but i cant understand why it isnt working. Quote Link to comment Share on other sites More sharing options...
DarkWater Posted September 13, 2008 Share Posted September 13, 2008 ../app/index.php?message=urlencode('Login to continue') And use urldecode to fix it later. Quote Link to comment Share on other sites More sharing options...
langenf Posted September 13, 2008 Author Share Posted September 13, 2008 Thanks for your lightning fast answer . Its going exactly where its supposed to, however it looks like this and the message is not displayed... http://localhost/app/index.php?message=urlencode(%27Login%20to%20continue%27) 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.