search

Home  >  Q&A  >  body text

Ajax submission background no data. I followed the teacher’s code and read it several times, but no problem was found.

ajax submission background no data I followed the teacher’s code and read it several times, but no problem was found 1.png2.png3.png

2235 days ago1288

reply all(2)I'll reply

  • 呼啦啦下雨天

    呼啦啦下雨天2019-06-11 08:49:50

    You first output it under $data in User.php: dump($data), which should be an array. If there is no data, it means ajax has not been submitted.

    reply
    0
  • 天蓬老师

    天蓬老师2018-11-27 21:46:53

    In the receiving script, you can first print the $_POST array and take a look. If you don’t get it at all, of course there is no data

    reply
    0
  • Cancelreply