Passing a Javascript string to PHP

后端 未结 4 1286
独厮守ぢ
独厮守ぢ 2021-01-20 08:14

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



        
4条回答
  •  滥情空心
    2021-01-20 08:31

    Your example is somewhat confusing:

    
    

    Because if I do this:

    
    

    Then it sets the JavaScript value of myvar to the PHP value of $myvar so they both stay the same. If you're trying to do something else you need to expand your example.

提交回复
热议问题