[Vuejs]-Vuejs – Retrieve input value

0👍

Finally I solved.

The problem is that Vue ( at least in my case ) send the data in the Request’s playload so to retrieve the input you need to use:

$data = file_get_contents("php://input");
var_dump($data);

0👍

You should pass an object as data,

this.$http.post('action.php', {email: passedEmail}, function (data) {
  ...
})

Leave a comment