I have a page (insert.php) from which I am trying to return a response that contains $my_variable as a json array back to another page (form.php).
I can see this array in the response section of my firebug console but how can I get at it on form.php and use it with php?
insert.php is sending this:
// sending output
header('Content-Type: text/json');
echo json_encode(array("my_var" => "$my_variable"));
}