PHP File Download using POST data via jQuery AJAX

Ufqroprha

New Member
So I know there have been a number of similar posts, but I think this is enough of a variation to warrant its own question:I am building an XLS exporter in PHP and jQuery. I am trying to POST an array with jQuery (which I believe is going to be too long as a GET querystring), and use it to generate an XLS file on my server, which the user can then download.I have used hidden iframes in the past to accomplish this, but since they just redirect to a url, this requires me to use GET, which makes me nervous. My question is then: how do I store those files on my server and link to them if they're being generated dynamically, potentially by multiple users? Would a hidden iframe link to a separate PHP script that locates THEIR file based on a session ID or something like that?Thanks in advance for any guidance here on what I'm sure gets asked all the time :)
 
Back
Top