I got data from third party plugin and I just got [object Object]
in javascript. I want to pass it on PHP
and show all the values on that [object Object]
. How could I to do that ? I already pass it to PHP
through GET
I got this [object Object]
from this part.
widget.createButton()
.attr('title', "Save chart")
.on('click', function (e) {
widget.save(function(data) {
window.location.href = "temp.php?var=" + data;
})
})
.append($('<span>save chart</span>'));
This is my PHP
code.
<?php
$var = $_GET['var'];
var_dump($var);
exit();
?>
if I do var_dump
it still get [object Object]
but I want to get the values of that [object Object]
.