Programming版 - Help please: Passing PHP values to Javascript |
|
|
|
|
|
b*h 发帖数: 353 | 1 Hi,
I need to pass some PHP values to Javascript. I tried the following example:
But the screen output is "" instead of "Hello". I have turned
the short_open_tag to "on" in the php.ini file.
What's wrong with my code? How to make it work?
Thanks a lot for any help. | o*o 发帖数: 404 | 2 use correct file extension
example:
turned
【在 b*h 的大作中提到】 : Hi, : I need to pass some PHP values to Javascript. I tried the following example: : : : But the screen output is "" instead of "Hello". I have turned : the short_open_tag to "on" in the php.ini file. : What's wrong with my code? How to make it work?
| l**a 发帖数: 423 | 3 it works here. I dont know why it could not work on your env.
Probably you IE or fireFox cached your contend.
Or a little typo |
|
|
|
|
|
|