Solved: PHP dynamic menus and passing variables

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Driller 59

Thread Starter
Joined
Oct 31, 2007
Messages
29
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.
 

Attachments

Driller 59

Thread Starter
Joined
Oct 31, 2007
Messages
29
Okay so I reworked the code and now everything works. If you would like to see the revamped code please feel free to PM me.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top