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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -