Varible excluding some content
Hi,
Can anyone tell me why a var. when declared the following way:
PHP Code:
$head_parameters =
"<SCRIPT LANGUAGE=\"javascript\">\n" .
"<!-- hide from old browsers\n" .
"function gotowizard() \n" .
"{ \n" .
"var simpleform = \"http://www.commission-junction.com/track/track.dll?AID=365409&PID=445343&URL=http://x.moreover.com/images/commjunct/redirect8.html\"\n" .
"// open the new window\n" .
"var newwin = window.open(simpleform,\"wizard\",\"status,resizable,scrollbars,width=500,height=550\")\n" .
"// newwin.focus()\n" .
"}\n" .
"// end hiding -->\n" .
"</SCRIPT>\n";
...only prints out:
Quote:
<SCRIPT LANGUAGE="javascript">
<!-- hide from old browsers
function gotowizard()
// end hiding -->
</SCRIPT>
Is there something PHP specific in the JS code that I shold be aware of?
Thanks in advance !