try this instead
var newVar = "<?php echo $value; ?>";
PHP doesn't emit anything unless it's been told to do so. ;)
Update
###Update YourYour script is processed on the client side, after the server is done parsing the php. If you need to update some information on the server after the page has loaded on the client's browser, AJAX is the way to go.
try this instead
var newVar = "<?php echo $value; ?>";
PHP doesn't emit anything unless it's been told to do so. ;)
###Update Your script is processed on the client side, after the server is done parsing the php. If you need to update some information on the server after the page has loaded on the client's browser, AJAX is the way to go.
try this instead
var newVar = "<?php echo $value; ?>";
PHP doesn't emit anything unless it's been told to do so. ;)
Update
Your script is processed on the client side, after the server is done parsing the php. If you need to update some information on the server after the page has loaded on the client's browser, AJAX is the way to go.
try this instead
var newVar = "<?php echo $value; ?>";
PHP doesn't emit anything unless it's been told to do so. ;)
###Update Your script is processed on the client side, after the server is done parsing the php. If you need to update some information on the server after the page has loaded on the client's browser, AJAX is the way to go.
try this instead
var newVar = "<?php echo $value; ?>";
PHP doesn't emit anything unless it's been told to do. ;)
try this instead
var newVar = "<?php echo $value; ?>";
PHP doesn't emit anything unless it's been told to do so. ;)
###Update Your script is processed on the client side, after the server is done parsing the php. If you need to update some information on the server after the page has loaded on the client's browser, AJAX is the way to go.