Accessing a variable like "<?=$s?>" worked before i reinstalled php/apache,
PHP Code:<?php
$s = $_COOKIE["tracker"];
?>
HTML Code:<script> var x = "test" + "<?=$s?>" + "test" </script>
just outputs
test<?=$s?>test
$s is valid as if i do an echo $s i get a result.
I think it could be a configuration thing.




Reply With Quote