Why doesn't this work now?
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.
Re: Why doesn't this work now?
Re: Why doesn't this work now?
I don't recommend using short tags, as they can get mixed up with Xml declarations and other scripting languages and means any code you wirte willl be dependant on that setting being turned on.