Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Answer

Commonmark migration
Source Link

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.

added 300 characters in body
Source Link
Shad
  • 15.5k
  • 2
  • 24
  • 34

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.

Source Link
Shad
  • 15.5k
  • 2
  • 24
  • 34

try this instead

var newVar = "<?php echo $value; ?>";

PHP doesn't emit anything unless it's been told to do. ;)

default

AltStyle によって変換されたページ (->オリジナル) /