Hi
I am trying to concatinate anchor tag and it is giving me this error
Parse error: syntax error, unexpected T_STRING

My code is

$link.="a href=".test.php/verify_email/$vcode." target=_blank>".Verify email address."</a>";

Can anybody help

Thanks in advance

Recommended Answers

try like this:

$link.="<a href=\"test.php/verify_email/$vcode\" target=_blank>Verify email address</a>";
Jump to Post

All 2 Replies

try like this:

$link.="<a href=\"test.php/verify_email/$vcode\" target=_blank>Verify email address</a>";

or this

$link .="<a href='test.php/verify_email/$vcode.' target='_blank'>Verify email address</a>";

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.