Originally posted by eckels2 it doesn't seem to parse $yourjavacode. it just leaves "$code" in the page, without it being replaced by the actual code.
what it thought of, is it might be my code that i'm trying to replace it with... the necessary java code is onLoad="snow()"...
so it looked like if (strtolower($bbuserinfo[field6])=='yes') {$yourjavacode='onLoad="snow()"';}
Should i do it differently? is that the problem?
You should be inserting the "$yourjavacode" variable into the wrong template. I tested it by inserting it into "headinclude" template and it works as it should be..