R
R
rinaz222018-08-22 22:25:32
PHP
rinaz22, 2018-08-22 22:25:32

AJAX code sends a post request to php. How to get response from php as json?

Hello! There is a normal AJAX code that sends a post request to a php file, then waits for a response from the php file. How to send a reply? In this case, he receives a response in the form of JSON

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alihang, 2018-08-22
@rinaz22

json_encode()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question