Kevin, You will need to send the header information for the file...then you can do a new header so that you show the "thank you for downloading" page...
Thank you, RAY HUNTER -----Original Message----- From: Kevin Stone [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 12:49 PM To: PHP General Subject: Re: [PHP] Download Page? Common question becuase of it's somewhat unintuitive nature, but it is very simple. Do a search for keywords "header" and "Content-disposition". That should reveal what you want. Good luck. -Kevin ----- Original Message ----- From: "Nick Richardson" <[EMAIL PROTECTED]> To: "PHP General" <[EMAIL PROTECTED]> Sent: Thursday, June 06, 2002 12:38 PM Subject: [PHP] Download Page? > Hi all, > > I was wondering how i could make a download 'landing' page, that once a user > has filled out the download form and submitted it, it will send the file > they are requesting as a download (not display a link to it, or display it > in the browser) and also render a page that says something like "thanks for > downloading blah blah..." behind it at the same time. > > I would assume i would have to use header() to do this, but i dont know > where i should start, a/o what headers to send. > > Any help would be appreciated. > > Thanks! > > //Nick Richardson ([EMAIL PROTECTED]) > //SiteCommand LLC > ---=====================================================--- > --] SiteCommand Control Panel: Coming June 1st, 2002 [-- > --] 'The Secure Solution To Easy Enterprise Management' [-- > ---=====================================================--- > --] Visit http://www.sitecommand.com to PreOrder Now [-- > ---=====================================================--- > > > -- > 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