I have a PHP file, TableUpdates.php, that I am trying to add a menu to. I have 2 different menus based on who is logged in. I have a MenuCheck.aspx file that determines who is logged in and then include
the correct Menu.php file. However, I can not get this to work. Here's the relevant part of TableUpdates.php:
<head>
<meta charset="utf-8" />
<title>Table Updates</title>
<link rel="StyleSheet" href="StyleSheet.css" type="text/css">
</head>
<body>
<!-- #include file="MenuCheck.aspx"-->
I've also tried switching out the <!-- #include file="MenuCheck.aspx"-->
with:
<script type="text/javascript">
<% if (User.Identity.Name == @"CORP\mmm976") {%>
<!-- #include file="AdminMenu.php"-->
<% } else if (User.Identity.Name == @"CORP\ibb601"){%>
<!-- #include file="AdminMenu.php"-->
<% } else { %>
<!-- #include file="Menu.php"-->
<% } %>
</script>
Neither works. The MenuCheck.aspx is this:
<%@ Page Language="C#" %>
<% if (User.Identity.Name == @"CORP\mmm976") {%>
<!-- #include file="AdminMenu.php"-->
<% } else if (User.Identity.Name == @"CORP\ibb601"){%>
<!-- #include file="AdminMenu.php"-->
<% } else { %>
<!-- #include file="Menu.php"-->
<% } %>
What am I doing wrong that this does not work?