filburt1
12-05-2002, 06:40 PM
function evaltemplate($templatename, $storagevar)
// evals $templatename and stores the output in $storagevar
{
$localcopy = gettemplate($templatename);
eval("\$$storagevar = \"$localcopy\";");
}
...and after that, I run:
evaltemplate("templatename", "contentsvariable");
Finally, I put $contentsvariable at the top of the header. The template templatename exists. However nothing shows up in the header. Why?
// evals $templatename and stores the output in $storagevar
{
$localcopy = gettemplate($templatename);
eval("\$$storagevar = \"$localcopy\";");
}
...and after that, I run:
evaltemplate("templatename", "contentsvariable");
Finally, I put $contentsvariable at the top of the header. The template templatename exists. However nothing shows up in the header. Why?