Now on the server end $_POST['data'] will contain your json data.

if you just pass the $fields_string it can be read in the server end too.
$data = file_get_contents("php://input");
now $data will contain your json data.

It completely depends on the server you are interacting with. If it
needs json in a variable then pass it using http_build_query.
Otherwise just pass json as you are doing right now.

What you server expects?

Shiplu Mokaddim
My talks,
Follow me,
SUST Programmers,
Innovation distinguishes bet ... ... (ask Steve Jobs the rest)

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to