Access a JavaScript variable from PHP

后端 未结 8 1043
萌比男神i
萌比男神i 2020-11-22 11:47

I need to access a JavaScript variable with PHP. Here\'s a stripped-down version of the code I\'m currently trying, which isn\'t working:

8条回答
  •  礼貌的吻别
    2020-11-22 12:04

    If showing data to the user, do a redirect:

    
    

    or an iframe:

    
    

    If you don't need user output, create an iframe with width=0 and height=0.

提交回复
热议问题