Using jquery
$.post('target.php', data, function(result) {
window.open('target.php');
});
In target.php
var_dump($_POST);
Results in
array(0) { }
I have the code above inside ajax success after success I want to open the target page in new tab and sending data in that page.
But this results in an empty array.
How to correctly send data using post request and how to retrieve it in target page