| Member with 29 posts. THREAD STARTER | | Join Date: Oct 2007 Location: Lethbridge, AB Experience: Advanced | |
Solved: PHP dynamic menus and passing variables Alright so I'm new to php but not programming in general. I am trying to build a menu with sub-menus that display only on given pages. So my idea was to pass an integer from the calling page into the included menu page and from there through a series of if-elseif statements determine which menu to include from there. So far all I am able to do is include the main menu but on said pages the sub menus will not show due to the if ( $pge == 31 ); statement and I've tried it with quotes around the 31 with no change. Any help would be greatly appreciated the source code for the menu and calling page are attached.
__________________ I may now alot about alot of things but I don't know it all |