Answers for "toggle between login and logout buttons php"

PHP
0

toggle between login and logout buttons php

<?php if(isset($_SESSION['id'])){ ?>
  <a class="link" href="logout.php" style="text-decoration:none">logout</a>
<?php }else{ ?>
  <a class="link" href="login.php" style="text-decoration:none">login</a>
<?php } ?>
Posted by: Guest on February-26-2021

Browse Popular Code Answers by Language