Up to this moment I was using this types of methods to send some variables via Ajax to server side php file and bring back some answer.
$('#some_form').ajaxSubmit({
success: function(result)
{
some code....
}
});
$.post('serverside_script.php', { variable: 'value' },
function(result)
{
some code...
});
Answer was always in 1 variable and it was ok till now.
But now I need several variables to come back from PHP side.
How can I modify my scripts to get several variables back ?
Copyright Notice:Content Author:「David」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/7455597/getting-multiple-variables-back-from-php-file-after-ajaxsubmit-or-post-method