Access JavaScript variables value in php to store in mysql

前端 未结 3 557
盖世英雄少女心
盖世英雄少女心 2020-12-22 11:12

Just simple, I am trying to access the variable in javascript inside the php while working with elrte, bleow is my index.php file


<         


        
3条回答
  •  萌比男神i
    2020-12-22 11:33

    You'll need to submit the value to your PHP script using a POST request to your server. You can do this with Ajax requests, and I believe jQuery has built-in methods for Ajax which are cross-browser.

提交回复
热议问题