I have a javascript array that I need to send to a PHP page to create PDF files on the fly.
I have the array, and I have the PDF creation working, but I can't figure out how to get the javascript array to a PHP array so I can just use a foreach loop to get the values.
Ajax won't work because the PDF file comes back as data and not a file. I can load the PHP file into an iframe, but I'd have to pass the array with a query string.
Is there a way to just pass the array to the PHP page (I can either reload the page the user is on or link to another page) intact through post?
jQuery or vanilla JavaScript is fine.