* 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 button what I would like is:
> 
> - I extract the data block from the DB
> - I send the data to the browser as a file download so the user can save 
> the data block to disk. (i.e. a save-file-as dialog comes up)
> - I mark the data block as inaccessible
> - I reload the page and present a new list. The data block the user as 
> just selected is no longer in the list.

What you are trying to do is virtually impossible. Due to HTTP
protocal's statelessness, you cant relyably reload the page after
the person has clicked on it. 

Then you have issues like what if the person is using a download
manager (external to the browser), or his connection drops, etc..

> ...
> 
> (suggested by Marek Kilimajer)
> <?
> header("Content-Type: multipart/mixed; boundary=\"-Boundary-12399\"");

This will only work if the browser supports multipart/mixed. And I
don't think any browser supports this.

Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to