actually, you should be able to do this without ever leaving the page that
were clicking from.

if on the page that you are linking to, you add headers to force a download,
you should never actually GO to that page.  Your browser should realize that
it is something that it is suppose to download and then bring up the Save As
box.  This will make it so you never leave the page that you were on.

Jim Lucas


----- Original Message ----- 
From: "Jean-Christian IMbeault" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 18, 2003 6:43 PM
Subject: [PHP] How to open a save-as dialog and then redirect after
donwload?


> I want to create the following:
>
> 1- A screen a series files and associated buttons
> 2- if the user clicks the button a "File | save as" dialog opens up
> 3- after the file the user is redirected to a new page
>
> I've gotten 1 and 2 to work but I can't figure out how to do anything
> after the file has finished downloading. I've tried header("Location: ")
> but that doesn't work because it must be used before any input is sent.
>
> The reason I want this functionality is that once a file is downloaded I
> want the screen with the buttons to refresh itself and remove the
> downloaded file from the list displayed to the user.
>
> How can I accomplish this? All suggestions welcomed!
>
> Jean-Christian Imbeault
>
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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

Reply via email to