Joyce Evans wrote:

"Content-disposition: attachment; filename=document.pdf"
This seems to be a good idea. Could you please give an example where this code would be placed on the web page or how it would fit into the code?

You can set this as a http header using a server side script.

In PHP the code looks like:

<?php
// We'll be outputting a PDF
header('Content-type: application/pdf');

// It will be called downloaded.pdf
header('Content-Disposition: attachment; filename="downloaded.pdf"');

// The PDF source is in original.pdf
readfile('original.pdf');
?>

see: http://php.net/header

kind regards
Terrence Wood.







*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to