I have this java array:
I want to post it and process it in PHP. I have a hidden field (theA) and the submit button. When this code executes:Code:j_cdb = Array({"cid":"43","pid":"2","name":"ATV","srch":"ATV"},{"cid":"44","pid":"8","name":"AU Jobs","srch":"AU Jobs"},{"cid":"20","pid":"1","name":"Accommodation","srch":"Accommodation"},{"cid":"21","pid":"1","name":"Accounting","srch":"Accounting"},{"cid":"22","pid":"8","name":"Accounting & Finance Jobs","srch":"Accounting & Finance Jobs"},{"cid":"23","pid":"1","name":"Advertising & Design","srch":"Advertising & Design"},{"cid":"24","pid":"1","name":"Advertising & Marketing","srch":"Advertising & Marketing"}, etc...) document.getElementById("theA").value=j_cdb; //this isn't working
I get:PHP Code:if (isset($_POST['theA'])) {
var_dump($_POST['theA']);
}
I have tried json.stringfy / json decode. I am very new at this (java / php) so any guidance would be appreciated.Code:string(8719) "[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object], etc....




Reply With Quote