Question
PHP: Restrict access to a section of code
hi guys,
I have implemented the login/user auth sections of my webby without any problems. Ive used the built in server behaviours in DW8. So i have a session variable called MM_username.
now instead of restricting access to a whole page, i just need to restrict access to certain sections inside a page. For example i have a user admin panel that i only want to show if they are logged in. and i only want the logout button to show if they are logged in etc.
im not great at hand coding php yet , so any help would be greatly appreciated.
thanks,
ted.
I have implemented the login/user auth sections of my webby without any problems. Ive used the built in server behaviours in DW8. So i have a session variable called MM_username.
now instead of restricting access to a whole page, i just need to restrict access to certain sections inside a page. For example i have a user admin panel that i only want to show if they are logged in. and i only want the logout button to show if they are logged in etc.
im not great at hand coding php yet , so any help would be greatly appreciated.
thanks,
ted.
