Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: got a problem retrieving a JSON object sent by ajax to php…


Paul Gibbs
Keymaster

@djpaul

$function = $_POST['action'];
$function();

function bp_classifieds_update_tree() {
global $bp,$wpdb;
if (!check_admin_referer('classifieds-settings') ) {
echo "NONCE error";
return;
}
$res = json_decode($json, true); //!
print_r($res);

}

Where exactly is that $json being set? ;)

Skip to toolbar