title: jQuery - How to post data to a different webpage and then display the results?
body: <p>How does one send POST data to a new webpage and then see the results of that webpage?</p>
  <p>From checking here on stackoverflow, I found and tried the below code:</p>
  <pre><code>        $.post( 'https://192.168.1.1/newpage.php', { 'test_param' : filenames_string }, function() {
              window.location.href = 'https://192.168.1.1/newpage.php';
          });
  
  </code></pre>
  <p>And it works to get the data from the client browser to the server. But it then calls the page again to display the results, this time with no POST data being sent.</p>
  <p>I have been able to use the following which does work:</p>
  <pre><code>        window.open('https://192.168.1.1?test_param={contents of the filename_string goes here}
  </code></pre>
  <p>But I would like to use POST instead because the list of items may not in the future be limited to just filenames and/or there may be thousands of filenames that could be sent.</p>
  <p>The problem is that it gets the correct data in the POST, but when the page actually displays with the second line of code (windows.location) the data is missing. Or, more specifically, the POST data is missing and the results returned are, therefore, not the results of the original POST data. The second call (window.location) shows the results that are based on no POST data being sent. Fr It seems like just using the .post would work but I need to get a zip file of these items returned in a new browser tab with additional information displayed. So I need to go to a new page and also be able to send the POST data in one call. Is that possible?</p>
  <p>Thank you for any solutions that may be suggested.</p>