<?php
if ($username)
echo $username
else
echo '<form class="navbar-form navbar-right" action="login.php">
<button class="btn btn-custom">Log ind</button>
</form>';
?>
I have this code and I want to be able to push my $username variable to the rightside, where my Login button was, when an user logs into my side. How would this be done?
I can't use
echo <p class="btn btn-custom"> <? $username; ?> </p>
what would be a possible way to do it?