Passing a Javascript string to PHP

后端 未结 4 965
傲寒
傲寒 2021-01-20 08:21

i want to pass a javascript string to php ... WHICH is RIGHT after the code .. in the script.



        
4条回答
  •  青春惊慌失措
    2021-01-20 08:37

    PHP is executed server side while javascript is client side, so that means that the PHP is already executed when you're sending your javascript code.

    You might want to look into AJAX instead.

提交回复
热议问题