I have a program that is passing me variables.

{$firstname}
{$refid}

I need to know the syntax of html to say

HELLO JOHN (where firstname=john)

and the syntax for a "<a href "http://www.mysite.com/"+{$refid}