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 Link to comment https://forums.phpfreaks.com/topic/216095-character-in-a-includepage/ 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 Link to comment https://forums.phpfreaks.com/topic/216095-character-in-a-includepage/#findComment-1123070 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?! Link to comment https://forums.phpfreaks.com/topic/216095-character-in-a-includepage/#findComment-1123076 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"); Link to comment https://forums.phpfreaks.com/topic/216095-character-in-a-includepage/#findComment-1123078 Share on other sites More sharing options...
unistake Posted October 17, 2010 Author Share Posted October 17, 2010 Ofcourse, Thanks! Link to comment https://forums.phpfreaks.com/topic/216095-character-in-a-includepage/#findComment-1123093 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.