Re: [PHP] Foring a file download *and* page reload

2003-09-02 Thread Marek Kilimajer
You can use either a tag or real header, the later is prefered. header('Refresh: 0; url=download.zip'); ?> The browser loads the page and immediatly goes to another page (download.zip). This page will prompt the Save As dialog. Jean-Christian IMbeault wrote: Marek Kilimajer wrote: But be

Re: [PHP] Foring a file download *and* page reload

2003-09-01 Thread Jean-Christian IMbeault
Marek Kilimajer wrote: > > But because explorer does not support multipart/mixed and it is still > the major browser (thought not for long ;), do it this way. Output > header('Refresh: 0; url=download.zip'); first and then load the html > page with new data blocks. Sorry if the solution is obv

Re: [PHP] Foring a file download *and* page reload

2003-08-29 Thread Marek Kilimajer
Curt Zirzow wrote: ... (suggested by Marek Kilimajer) This will only work if the browser supports multipart/mixed. And I don't think any browser supports this. I bet any browser except explorer ;) But because explorer does not support multipart/mixed and it is still the major browser (thought

Re: [PHP] Foring a file download *and* page reload

2003-08-29 Thread Curt Zirzow
* Thus wrote Jean-Christian IMbeault ([EMAIL PROTECTED]): > I've asked about this before but could not get a working solution. > > I have a database. Users put data in the DB :) I have a page with a list > of accessible data "block". Each "block" has a button next to it. > > When a user click a

[PHP] Foring a file download *and* page reload

2003-08-29 Thread Jean-Christian IMbeault
I've asked about this before but could not get a working solution. I have a database. Users put data in the DB :) I have a page with a list of accessible data "block". Each "block" has a button next to it. When a user click a button what I would like is: - I extract the data block from the DB -