Trying to add html w/ link using echo after else in php -
i have content available registered users - guests see intro if click read more shown message login or register - need add link registration page in message see.
here have tried:
if (!$user->guest) { echo $this->item->fulltext; } else echo '<h3><b>please login or <a herf="/login/register">register</a> view entire article</b></h3>'; ?>
my text shows correctly & word register turns blue, not linking. please advise. thank in advance.
when can tell me herf
is, i'll wonder myself.
it's spelled href
not herf
.
=>
<a href="/login/register">register</a>
Comments
Post a Comment