PHP - user credential condition

0 votes
198 views
added Aug 21, 2019 in PHP by LC Marshal Captain (25,790 points)
<div class="button-container">
  <?php if(!$is_login){?>
  <a href="/login" type="button" class="btn-login">LOGIN</a> / <a href="/register" type="button" class="btn-signup">SIGNUP</a>
  <?php }else{?>
    <button type="button" class="btn-login btn-logout" onclick="logout()"><i class="material-icons power-btn">power_settings_new</i> LOGOUT</button>
  <?php }?>
</div>

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...