PHP code inside a Javascript's “[removed]()”

后端 未结 5 933
广开言路
广开言路 2020-12-20 21:50

I need to write some PHP code inside a Javascript\'s \"document.write()\". This is a dummy example, but in the future Javascript will generate automatically tha

5条回答
  •  孤城傲影
    2020-12-20 22:53

    What you ask is not possible. Javascript generates the php code client side, after the server is finished. The server never sees the PHP code.

提交回复
热议问题