Variables available in after [insert_php]
-
When I use [insert_php] and populate a variable, is it available outside of the [insert_php] block? Like in my <script>
ie.
<head></head> <body> [insert_php] $testVar = "Hello"; echo $testVar . "\n"; [/insert_php] <script type="text/javascript"> document.write($testVar); </script> </body>only produces
HelloIt should produce
Hello
HelloCorrect?
Am I missing something?
Thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Variables available in after [insert_php]’ is closed to new replies.