<div class="border">
<a href="index.html"><img class="Logo" src="img/Logo.png" alt="Logo"></a>
<form class="" action="index.php" method="post">
<input id="searchbar" type="text" name="searchbar" placeholder="Search...">
</form>
<?php
if (isset($_SESSION["useruid"])) {
echo "<button class="borderbutton" id="signupbutton" title="Press to go to profile page" onclick="location.href='profile.php'">Profile</button>";
echo "<button class="borderbutton" id="loginbutton" title="Press to logout" onclick="location.href='includes/logout-inc.php'">Log out</button>";
}
else {
echo "<button class="borderbutton" id="signupbutton" title="Press to sign up" onclick="location.href='signup.php'">Sign up</button>";
echo "<button class="borderbutton" id="loginbutton" title="Press to login" onclick="location.href='login.php'">Login</button>";
}
?>
</div>
Should I use 'include' instead and link to a new page? I feel like there should be some way to make this work with the 'echo' command.