ajax submission background no data I followed the teacher’s code and read it several times, but no problem was found
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.
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
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.
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