keithdowd Posted January 6, 2010 Share Posted January 6, 2010 Hi all, Is it possible to pass URL values within a PHP "include" statement? For instance: include("menu.php?name=1"); I've tried this myself and it doesn't seem to work. My server responds with an error stating that the file being referenced in the "include" statement does not exist. Quote Link to comment https://forums.phpfreaks.com/topic/187445-passing-url-values-into-an-include-statement/ Share on other sites More sharing options...
PFMaBiSmAd Posted January 6, 2010 Share Posted January 6, 2010 $_GET['name'] is already available when the code in the included file becomes part of the main file. Quote Link to comment https://forums.phpfreaks.com/topic/187445-passing-url-values-into-an-include-statement/#findComment-989800 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.