Forum Moderators: coopster
I need to build a dynamic menu that will include certain links depending on what variables are in the URL. This is doable - right?
For example: catalog.php?product=widget&color=green
Menu would look like:
Green Widgets
Brand 1 Green Widget
Brand 2 Green Widget
Brand 3 Green Widget
etc.
Any help would be greatly appreciated!
<?php include($_GET['widget'] . '_nav.inc'); ?>
You should check that this isn't exploitable.
eg. index.php?widget=/etc/passwd