에코없이이 페이지에 html을 추가해야합니다. 세션 ID가있는 경우에만 표시하고 싶습니다.이 페이지에 html을 추가하려면 어떻게해야합니까?
<?php
session_start();
//home.php
if($_SESSION['id'])
{
echo "Welcome ,".$_SESSION['username'] ;
echo "<br /><br /><a href='/login/logout.php'>Logout</a>" ;
echo "<br /><br /><a href='edit.php'>Edit Profile</a>" ;
echo "<br /><br /><a href='/profiles/".$_SESSION['username']."'>View Profile</a>" ;
}
else
{
echo "You don't belong here!";
}
?>