Hey everyone,
I have a forum that a user can only access if they logged in. This is checked by a session variable. My problem is that I also generate an email saying when they get a reply and I want to be able to have the user click the link in the email and go directly to the post. I tried this code to get that to work, it checks to see about the session then I tried to use || as an or statement to check if the permission was passed through the link:
if ($forum != "Logged" || $permission != "Yes"){
<table width="686" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="230"><img src="https://website.com/images/clear.GPG" width="230" height="1"></td>
<td width="456">You do not have permission to view this forum. </td>
</tr>
</table>
}
In using this code and it works fine without the || $permission != "Yes" when I'm logged in but when I add that section of error it says I don't have permission. I would like a piece of code that checks if either one of these have been met and then allows a user to access the page! Please Help.