Re: How can the Surfer download
| From: | Jason Wong | Date: | Thu, 24 Jan 2002 14:45:23 +0000 |
| Subject: | Re: How can the Surfer download | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-81884@lists.php.net to get a copy of this message | ||
On Thursday 24 January 2002 21:33, Todd Cary wrote:
> When the surfer presses a button, I want a pre-determined file to be
> downloaded by the surfer - the box to come up on the surfer's browser:
> "Open or save...".
Many ways to do this, one of which could be:
<form action="download.php">
<input type="submit" name="submit" value="Download">
</form>
Then in your file download.php, have a single statement using the header()
function to redirect to the file that is to be downloaded.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
/*
Bore, n.:
A person who talks when you wish him to listen.
-- Ambrose Bierce, "The Devil's Dictionary"
*/