algorithm Posted June 10, 2010 Share Posted June 10, 2010 Hey, so Ive created an export data script that links to my mysql database and constructs a csv document (using headers) to export the data. This works fine in all browsers except IE, where it would actually ask the user for my mysql username and password to open the csv spreadsheet. Pressing 'cancel' allows the user to see the spreadsheet, but I'd like to open the csv file without this password nonsense in IE. Any solutions? Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted June 10, 2010 Share Posted June 10, 2010 Code? Quote Link to comment Share on other sites More sharing options...
algorithm Posted June 10, 2010 Author Share Posted June 10, 2010 here is my header header("Content-type: application/"); header("Content-disposition: csv" . date("Y-m-d") . ".csv"); header("Content-disposition: filename=".$filename.".csv"); print $csv_output; Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted June 10, 2010 Share Posted June 10, 2010 How do you build $csv_output? What's the value of $filename? If you had posted the whole script, I wouldn't have to ask these questions. Also, others would be able to run the script on their machines to try to replicate the problem and, perhaps, see where the problem is occurring. Ken Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.