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. 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. 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
Archived
This topic is now archived and is closed to further replies.