[Vuejs]-Is there any problem in my vue or php code?

0👍

i have identified the issue in

PHP Code:

if($_SERVER["REQUEST_METHOD"]=="POST" && empty($_POST))
{
    //CONVERT THE POST INPUT REQUEST TO POST ARRAY
    $_POST = json_decode(file_get_contents('php://input'),true);
}

we need to write the above code in php before using $_POST

Leave a comment