As PHP generates the HTML for the browser, you will make 'decisions' about which page; based on the user.
Either the user details are retrieved from a database or dynamically (during this session) you have made a decision about this user as to which page(s) they will see.
Build a global array of the "types" of users and related pages.
Then when you create the hyperlink - in PHP code - just add the "href" value based on the current "UserType" (which I would include as a session variable). Something like this:
This assumes you have the global array of user types (one element for each *different* user) and pages. For example:
<a href="<?php echo $usertype[$current_user_type]; ?>" target="parent">HOME</a>
I think you get the idea. Your actual variable names and page names will, likely, be different.
$usertype["basic"] = "home1.php";
$usertype["basic" = "links1.php";
$usertype["advanced"] = "home2.php";
$usertype["advanced"] = "links2.php";
$usertype["novice"] = "home3.php";
$usertype["novice"] = "links3.php";
Another - simple - approach would be to encode the pagenames IN the session (group) value. Like this:
You then create pages
<a href="home<?php echo session['user_group']; ?>.php">Home</a>
Or some variation on this idea.