POST array empty on jQuery AJAX call

后端 未结 2 1435
孤城傲影
孤城傲影 2021-01-22 10:18

I hesitate to ask, as there are numerous other posts on this topic (one and two for example), but none of the solutions in those posts seem to apply to me.

I am trying t

2条回答
  •  终归单人心
    2021-01-22 10:47

    Try in PHP as below (When request is an application/json, then you will not get data into $_POST)

    var_dump(json_decode(file_get_contents("php://input")));
    

提交回复
热议问题