ajax - Posting php multi dimentional array into a new window -
I have an associative array from my database.
I would like to open a new window
I have managed to post it in Ajax Post, but I do not need it because I want a new window!
It is impossible to use a form because you can not keep that kind of data in hidden input.
So how can I do this?
I think that you
PHP example:
echo json_encode (array ('int' => 123, 'char' => 'abc', 'array' => array (1,2,3)); Javascript:
$ GetJSON ("AJAX / Test. Php", function {data} {console.log (data); // data is a Jason-object data. Unit (function) {console.log (type.in item.int) // number, value 123 console.log (type item.char) // string, value '123' console.log (item of type. Array) // array / object, value 1,2,3})}} ; Edit : Name is selected as int, char and array as an example. >
Comments
Post a Comment