Using AJAX, I echo back a PHP array this way...
echo json_encode($_SESSION['answers']);
Once I have this echoed back, how can I turn those array elements included in "$_SESSION['answers'] into a Javascript array?
I "retrieve" it using this...
var answers = xmlHttp.responseText;
But I'm not sure where to go from here, or even if the line above is correct.
Please help!
echo json_encode($_SESSION['answers']);
Once I have this echoed back, how can I turn those array elements included in "$_SESSION['answers'] into a Javascript array?
I "retrieve" it using this...
var answers = xmlHttp.responseText;
But I'm not sure where to go from here, or even if the line above is correct.
Please help!