Answers for "php json encode use in ajax jqueryu"

PHP
4

how to set json type jquery ajax

$.ajax({
    type: "POST",
    contentType: "application/json",
    url: 'http://localhost:16329/Hello',
    data: { name: 'norm' },
    dataType: "json"
});
Posted by: Guest on June-30-2020
0

php json response to ajax

<?php
 echo json_encode($data);
?>
Posted by: Guest on September-08-2020

Browse Popular Code Answers by Language