Re: Edit with notepad
| From: | Neil Smith [MVP, Digital media] | Date: | Tue, 11 May 2004 17:45:35 +0000 |
| Subject: | Re: Edit with notepad | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-34367@lists.php.net to get a copy of this message | ||
Just offer them a link to the next page. Put &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@towa.com.sg> To: "DBList" <php-db@lists.php.net> Date: Tue, 11 May 2004 09:25:08 +0800 MIME-Version: 1.0 Content-Type: text/plain;======================================================== CaptionKit http://www.captionkit.com : Production tools for accessible subtitled internet media, transcripts and searchable video. Supports Real Player, Quicktime and Windows Media Player. VideoChat with friends online, get Freshly Toasted every day at http://www.fresh-toast.net : NetMeeting solutions for a connected world.charset="iso-8859-1"Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DB] 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