Mr.x Posted July 7, 2006 Share Posted July 7, 2006 Hello Everyone,I'm working a menu bar but was hoping to stay away from javascript and when a user clicks on say for instance Flowers then the menu offers more options below on the next page. I have a header file, so was thinking if I am able to either call or pass on expand="flowers" then just have an if expand == "flowers" print etc.Any Suggestions? Link to comment https://forums.phpfreaks.com/topic/13928-pass-variable-to-an-include/ Share on other sites More sharing options...
CheesierAngel Posted July 7, 2006 Share Posted July 7, 2006 This seems to me easier with session variables.[code]// --PAGE1 --$_SESSION['flowers'] = expand;// --PAGE2 -- if($_SESSION['flowers']) { // -- expand flowers --}[/code] Link to comment https://forums.phpfreaks.com/topic/13928-pass-variable-to-an-include/#findComment-54258 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.