|
I am writing php program in which at a certain point i need to mix three languages, php, javascript and html in the same line. the output of what im doing is correct but i still get an error on page message in internet explorer.
here is the line of code:
document.write(" <a href=http://www.linkedpage.htm target=gf onClick=fgf = window.open('','gf');fgf.focus()>
(followed by - but less important)
<font size=<? echo "$fontsize" ; ?> color=#<? echo "$titlefontcolor" ; ?> face=<? echo "$fonttype" ; ?>>Recent Studies:</font></a>");
the function fgf just opens the linked page in a new window. I know there isnt much code there to play with but i know the problem is just something like missing " or something. the mixture of 3 languages in causing the problems, cause php has " as a special character. anyone have any suggestions on how to make this line of code work ??
"onlick=fgf = window.open('','gf');" - this part is where im guessing the problem arises cause of the two equals signs... any ideas anyone ?
|