The below code is hard coded with the url to the image. I want to use the $ROOT_HOST url some how. I am missing something and just not figuring it out. SO i thougt i would put this in here for all the professionals to help me out. A thank you in Advance.
document.writeln('<center>');
document.writeln('<font face="Tahoma" size="1"><a target="_blank" href="<?
$url = $ROOT_HOST."register.php?affid=$campaign[user_id]";
$url = ereg_replace("<","<",$url);
$url = ereg_replace(">",">",$url);
echo $url;
?>"><img src="http://www.site.com/image.gif" border="0"></a></font>');
document.writeln('</center>');