Log in

View Full Version : how to open excel file separately



venkat
03-22-2007, 09:01 AM
I am working on PHP and mysql,

I set the content type to EXCEL, in the header,

Now, that is opening in browser,
Is there any chance to open that content in separate excel file & how to insert check box in excel file,

thanks in advance,
venkat

adstray
03-30-2007, 03:17 PM
I used this once and it worked. I hope it helps...

header("Content-type: application/vnd-ms-excel");
header("Content-Disposition: attachment; filename=excelfile.xls");