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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.