change php variable with ajax

后端 未结 5 424
时光说笑
时光说笑 2020-12-06 08:55

I have an php variable like this:

PHP Code:

$php_value = \'Am from PHP\';  

And I want to be able to change this variable with jQue

5条回答
  •  遥遥无期
    2020-12-06 09:41

    If jQuery is going to be processing the data, then you can assign the PHP variable to a jQuery variable like this:

    
    

    As far as I know, because jQuery is client-side and php is server side, it's not possible to assign a jQuery variable back to PHP.

提交回复
热议问题