title: Login/logout dynamic
body: <pre><code>    if(isset($_SESSION['username'])) {
  echo "Logout";
  } else {
  echo "Login";
  }
  ?&gt;
  </code></pre>
  
  <p>i need someting like this thath i adapted to this bur still wont work...</p>
  
  <pre><code>    &lt;?php
  if(isset($_SESSION['username'])) {
  &lt;p&gt;Ola; &lt;u&gt;&lt;?php echo $_SESSION['username']; ?&gt;&lt;/u&gt;, &lt;/p&gt;
  &lt;p&gt;&lt;a href="logout.php"&gt;Logout&lt;/a&gt;&lt;/p&gt;;
  }
  else {
  &lt;p&gt;&lt;a href="#login-box" class="login-window"&gt;Login&lt;/a&gt;&lt;/p&gt;;
  }
  ?&gt;
  </code></pre>
  
  <p>Should i put it in a separed frok html code and include it or? Help me please</p>