I wrote PHP in HTML code :
<div id="loginContainer">
<?php
if(!$_SESSION['id_client']){
print "<a href=\"#\" id=\"loginButton\">";
} else {
print "<a href=\"#\" id=\"loginButton3\">";
}
?>
</a></div>
but this appears in the output page: ;}else { print
How can I get the PHP to execute?
<a href="#" id="<?php echo $_SESSION['id_client'] ? "loginButton3" : "loginButton" ?>"></a>