>header("Content-type: application/vnd-ms.word"); is not what my customers
>want. They may or may not want to save it in their harddisk.. but having
>header at the beginning of my page will force them to save it in their
>harddisk. Some of the customers just want to view it on the web while
>want to view it in Word and possibly edit it and then save it.. how can i
>achieve such flexibility for them?

This box is harldy ever a single option only.  There is usually both Open
and Save.
If you wish to give them the choice, create two links, one which goes to a
page with header() and one without.  Other ways i'm sure could be
built...JS Popup that reloads the parent window the the appropriate


>thank you!!


----- Original Message -----
From: "Neil Smith [MVP, Digital media]" <[EMAIL PROTECTED]>
Sent: Tuesday, May 11, 2004 2:25 AM
Subject: [PHP-DB] Re: Subject: Edit with notepad

> Send before any content, an MS-Word header :
> header("Content-type: application/vnd-ms.word");
> Then output your HTML.
> Cheers - Neil.
> At 07:41 10/05/2004 +0000, you wrote:
> >Message-ID: <[EMAIL PROTECTED]>
> >From: "Ng Hwee Hwee" <[EMAIL PROTECTED]>
> >Date: Mon, 10 May 2004 15:40:27 +0800
> >MIME-Version: 1.0
> >Content-Type: multipart/alternative;
> >boundary="----=_NextPart_000_00D2_01C436A5.1E3B4100"
> >Subject: Edit with notepad
> >
> >Hi
> >
> >My customers would like to save my php outputs in a word document file
> >so I have added a meta tag <META NAME="ProgID" CONTENT="word.document">
> >my php files. However, my File->Edit button in IE6 is greyed out. why? i
> >see that other php files on other websites allow Edit, why is it that my
> >programs don't allow it??
> >
> >thanx for any insights!!
> >
> >regards,
> >Hwee Hwee

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to