unistake Posted October 17, 2010 Share Posted October 17, 2010 This include does not work. I presume due to the ? in it. <?php include("signin-redirect.php?page=my-account.php");?> It works as just signin-redirect.php but I want to include the ?page=my-account.php on the end of it. Thanks Quote Link to comment Share on other sites More sharing options...
jkewlo Posted October 17, 2010 Share Posted October 17, 2010 Hello, I do not think you can do includes like this. and the reason is it is looking for the file in the directory and what you have here would be for a the address bar. so no will not work Quote Link to comment Share on other sites More sharing options...
unistake Posted October 17, 2010 Author Share Posted October 17, 2010 there must be a way to do it though?! Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted October 17, 2010 Share Posted October 17, 2010 if you include the file, you don't need to pass it page=my-account.php. just do this: $page = 'my-account.php'; include("signin-redirect.php"); Quote Link to comment Share on other sites More sharing options...
unistake Posted October 17, 2010 Author Share Posted October 17, 2010 Ofcourse, 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.