I am trying to redirect to another page and pass an array with it, I have tried the following:
$.post('search-results.php', {'results': results});
but nothing happens at all. No errors or anything, what am I doing wrong?
Three solutions:
fill a hidden form with post action and submit it via javascript.
use window.location.url and add the parameters as get request but keep in mind that it's not post request as you wish.
use jquery $.post, send the post data to a php script that keeping the data into session and on success callback redirect through window.location to the page that you want. This page will be looking if data exists in the session and it will use these data.