Download file name

From: Date: Tue, 25 Jul 2000 14:48:20 +0000
Subject: Download file name
Groups: php.general 
Request: Send a blank email to php-general+get-8050@lists.php.net to get a copy of this message
Hi, I'm storing downloadable PDF files in a database. They are retrieved by linking to a script with "ID=xx" in the URL. For example: <a href="sample.php?ID=5">click to download sample</a> The problem I have is, if you right-click on the sample and specify "save file to disk", the filename defaults to "sample.pdf". How can I force this filename to be something different and more appropriate (such as "issue5.pdf" in this instance)?

« previous php.general (#8050) next »