I have included in my html code (SRC) a file that I want Javascript to
ignore, but PHP to execute (if parsed by PHP)
the js function is:
function justphp(f) {
$test="<?php die(); ?>";
return;
}
In javascript the variable $test is just a string and will never be used,
but in PHP it will die when executed.
whenever I read it as javascript though I get a runtime error:
Line 2: Error: Unterminated string constant.
PHP works fine.
But my string IS terminated! Why does it not just assign the string and
ignore it, like it is supposed to...
Or what am I missing?
Thanks for any comments you may have,
John.
(IE6, win98)