samedi 16 mai 2015

Need help making an if statement in php that creates a html href link when passed correctly

<?php if ($_SESSION["isLoggedOn"] == True) {?>
<a href="termsConditions.php">LOGOUT</a>
<?php }?>

i want the link to only be created if the IF statement is successful and to not create it if it is not. At the moment no matter what i have tried to change the link will always be created. thanks.

Aucun commentaire:

Enregistrer un commentaire