Ok, I know there were many of those but my code just won't work... I tried solutions found on Stack but still...
I would like to transfer my array built in jQuery to my php script that will compare it with other array etc.
My jQuery code looks like this:
$.post('rezultat.php',{wyb: JSON.stringify(wybrane)});
and in my rezultat.php file I try to decode it:
$wyb = json_decode($_POST['wybrane']);
I tried the $_POST method before, with no results. What am I doing wrong?
$_POST['wyb'], since that's what you're calling the field in the JS code.var_dump($_POST)will confirm that.