Skip to content Skip to sidebar Skip to footer

PHP Not Receiving Data From XMLhttprequest

Hi I am sending data to a php script like so: function ajax(url,data,success) { var request = new XMLHttpRequest(); request.open('POST', url); request.onreadystatechang

Solution 1:

Sounds like you're experiencing quite a well-known issue (some info here: PHP "php://input" vs $_POST)

You should be able to access the data with file_get_contents('php://input')


Post a Comment for "PHP Not Receiving Data From XMLhttprequest"