I have a php code in a div but I want the username show after the user has logged in but how could I echo a session inside an echo?
<?php
if(isset($_SESSION['username']))
{
echo '<ul class="nav" action="Login.html" method="post">
<li class="loginbtn"><a href="#">echo '$_SESSION['username'];'</a></li>
<li class="loginbtn"><a href="#">Logout</a></li>
</ul>';
}