How to print JavaScript with PHP

前端 未结 3 1650
半阙折子戏
半阙折子戏 2021-01-25 23:44

I need to pass some JS variable to PHP and am having some trouble.

I have tried the following:

$product_id = \"

        
3条回答
  •  孤独总比滥情好
    2021-01-26 00:47

    Thanks for the assistance, very much appreciated! I have managed to get it done by using ajax as suggested:

     
    

    It is now working with the above code. Thanks again!

提交回复
热议问题