here
\n"; $keys = $_COOKIE['currentpage']; $m = $MENU[$keys[0]]; // this gets us to the menu choice for the top menu in the data structure $url = $m['list'][$keys[1]]['url']; // get to the list of submenu choices, choose the proper one, and get its url //echo "url: $url, m[label]: " . $m['label'] . "
\n"; } else { $url = 'config/db.php'; /*'machines/groups.php';*/ } header("Location: $url"); ?>