OK here is a little function that could help ya
Simply call the function passing the required vals
function make_link($url, $linktext=false, $target=false, $extras=false)
{
return sprintf("<a href=\"%s\"%s%s>%s</a>",$url,
($target ? ' target="'.$target.'"' : ''),
($extras ? ' '.$extras : ''),
($linktext ? $linktext : $url)
);
}
HTH
GM