Re: Edit with notepad

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all

thanx for the suggestions! yah, now i give my customers 2 buttons that will
direct them to 2 functionalities.

however, I still have a problem!! =(

i'm using 2 headers:
     header("Content-type: application/vnd-ms.word");
     header("Content-Disposition: attachment; filename=agent.doc");

why is it that the core of my .doc file is still in html?? i mean, i pulled
the file agent.doc into Notepad and I see html codes being generated. This
is very bad for me because my file has some graphics in it. If the core of
my file is html, the graphics will be a link instead of being embedded into
my documents. As a result, whoever tries to save that page will not be able
to see the graphics, unless they save the graphics into their computer with
the exact folder directory too! Please help me.

thank you!!

regards,
hwee

----- Original Message ----- 
From: "Neil Smith [MVP, Digital media]" <php@xxxxxxxxxxxxxxxxxxxxxxxx>
To: <php-db@xxxxxxxxxxxxx>
Sent: Wednesday, May 12, 2004 1:45 AM
Subject: Re:  Edit with notepad


> Just offer them a link to the next page. Put &amp;format=word in as the
> query string if they choose the 'view word document' link or no query
> string if they choose the plain text view as html page. Then go for
>
> if ($_GET["format"]=='word') {
>          header("Content-type: application/vnd-ms.word");
> }
>
> Really, offering your customers what they want is what we're all about -
> you have to take some responsibility for implementing snippets of code
like
> this ;-)
>
> Cheers - Neil
>
> At 10:39 11/05/2004 +0000, you wrote:
> >Message-ID: <003a01c436f6$eaabd140$800101df@hweehwee>
> >From: "Ng Hwee Hwee" <hhwee@xxxxxxxxxxx>
> >To: "DBList" <php-db@xxxxxxxxxxxxx>
> >Date: Tue, 11 May 2004 09:25:08 +0800
> >MIME-Version: 1.0
> >Content-Type: text/plain;
> >         charset="iso-8859-1"
> >Content-Transfer-Encoding: 7bit
> >Subject: Re:  Edit with notepad
> >
> >hi,
> >
> >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
the
> >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
others
> >want to view it in Word and possibly edit it and then save it.. how can i
> >achieve such flexibility for them?
> >
> >thank you!!
> >
> >regards,
> >hwee

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux