how to assign javascript variable value to php variable

前端 未结 8 1556
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-28 15:12

I have declared a javascript variable ,

 var myJavascriptVar = 12345;

And unable to assign that value to php variable;

8条回答
  •  鱼传尺愫
    2020-11-28 15:55

    PHP is server side language and JS is client side.best way to do this is create a cookie using javascript and then read that cookie in PHP

    
    
    
    

提交回复
热议问题