added a link to profile page when clicking name

This commit is contained in:
thies 2021-01-10 22:08:28 +01:00
parent 5d2dd2a6d5
commit 7c4d552405

View File

@ -29,7 +29,7 @@ $activated = $_SESSION['activated'];
<a class="p-2 text-dark" href="https://github.com/td00/loginpagefoo">Git</a>
<?php
if($userid > 0){
echo 'Hi '.$_SESSION['username'];
echo 'Hi <a href="profile.php">'.$_SESSION['username'].'</a>';
}else{
echo '<a class="p-2 text-dark" href="register.php">Register</a>';
}