SUNIL16 Posted October 25, 2008 Share Posted October 25, 2008 I created the forum, For forum i am using registration page, only registered members can post topics. That i am checking like this <?php session_start(); if (isset($_SESSION['myusername'])) { include("postquestion.html"); } else { include("registertopost.html"); } ?> Now the doubt is when the member login he has to get NEW TOPIC, LOGOUT , REPLY buttons. but it should not be there for guests. i am using two pages one for members and other for guests. how to do with one page. Link to comment https://forums.phpfreaks.com/topic/130038-doubt-about-retriving-posted-forum-topic-in-one-page-both-for-users-and-guests/ Share on other sites More sharing options...
MasterACE14 Posted October 25, 2008 Share Posted October 25, 2008 have your menu page, with something like this in it... <?php if(isset($_SESSION['myusername'])) { // echo buttons for logged in user } else { // echo buttons for guest } ?> Link to comment https://forums.phpfreaks.com/topic/130038-doubt-about-retriving-posted-forum-topic-in-one-page-both-for-users-and-guests/#findComment-674227 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.