sorry...not too advanced with php yet.
not quite sure what you mean but let me give another example.
the following works fine:
<?php
if ($HTTP_SESSION_VARS["MM_UserAuthorization"] == "Administrator")
echo ' <table width="156" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="156"><table border="0" cellpadding="0" cellspacing="0" class="adminmenu1button">
<tr>
<td width="10"> </td>
<td><a href="staff.php">Inventory Staff</a></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="adminmenu1button">
<tr>
<td width="10"> </td>
<td><a href="translators.php">Translators Staff</a></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="adminmenu1button">
<tr>
<td width="10"> </td>
<td><a href="clients.php">Clients</a></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="adminmenu1button">
<tr>
<td width="10"> </td>
<td><a href="assignjob.php">Assign inventory job</a></td>
</tr>
</table>
</td>
</tr>
</table>';
?>
and displays this table with the navigation links in it if the user is the administrator.
But i try to do the same thing for when the user is "Staff"
the problem is that the table i'm echoing has some php code in it, and the same condition does not work
am I supposed to create a string?
this is the table I'm trying to echo
<table width="156" border="0" cellspacing="1" cellpadding="0">
<tr>
<td><table border="0" cellpadding="0" cellspacing="0" class="adminmenu1button">
<tr>
<td width="10"> </td>
<td><a href="diarystafflogin.php?c=<?php echo $HTTP_SESSION_VARS['MM_Username']; ?>">View
My diary</a></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="adminmenu1button">
<tr>
<td width="10"> </td>
<td><a href="property.php">Upload reports</a></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="adminmenu1button">
<tr>
<td width="10"> </td>
<td> </td>
</tr>
</table>
<table width="154" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table border="0" cellpadding="0" cellspacing="0" class="adminmenu1button">
<tr>
<td width="10"> </td>
<td><a href="next.php?UUsername=<?php echo $HTTP_SESSION_VARS['MM_Username']; ?>">Edit
My Account</a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
Could you give me an example plesase? many thanks.