Hi, on my site i want to have a login on the navigation, so when the user is logged in the bit where it says to login i want it to change to Welcome <username>
how can i do this? I can only use PHP and cookies or java on this site, no mysql
<?php if (isset($login)): ?> Welcome <?= $login ">. <?php else: ?> <form...> <!-- log in form --> </form> <?php endif; ?>
hmm, I will give it ago
hmm, that didn't work, how can i use it so it checks if $HTTP_COOKIE_VARS["user"] is set? (the cookie it works with)
How about using "$HTTP_COOKIE_VARS["user"]" instead of "$login" in my code? :-)
hmm, good idea!
😢 it didn't work 🙁
what happend?