Header function

[email protected] ("Nick allan")
Newsgroups php.general
Message-ID <003401cab765$d4e4e130$7eaea390$@net>
Hi all

Has anyone got any ideas why the following isn't giving me correct filename
in the ie save dialogue

header('Content-Type: application/msword');

 header('Content-Disposition: attachment; filename="PurchaseReq.doc"');

 

I get the save dialogue, but with preq.doc instead of PurchaseReq.doc

Preq.php is the calling php file. It has worked before so I'm not sure what
I've changed to have it stop working.

 

 

Thanks in advance for any suggestions.

 

Regards Nick
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.