Session BRE04 Help

Correction Exercice 2

<?php $connectedUser = false; ?> <!doctype html> <html lang="fr"> <head> <meta charset="utf-8" /> <title>Exercice 2</title> </head> <body> <header> <nav> <?php if(!$connectedUser) { ?> <a href="#">Connexion</a> <?php } else { ?> <a href="#">Déconnexion</a> <?php } ?> </nav> </header> </body> </html>
21 May 2025