Re: Content Type Text?

From: Date: Wed, 01 Aug 2001 21:47:46 +0000
Subject: Re: Content Type Text?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-60783@lists.php.net to get a copy of this message
on 8/1/01 4:35 PM, Jeff Oien at jeff@webdesigns1.com wrote: > I've looked all over and can't find a content-type declaration for text. > This is my guess > header("Content-Type: text/txt"); > but I'm not sure if this is right. I know this is more HTTP than PHP. > I want info to be displayed in a browser as plain text not HTML. > Thanks. > Jeff Oien Look at the headers of an email. If the sender is savvy, they sent it in plain text... Content-Type: text/plain; This works fine as long as you don't include the tag "<html>". On IE5 for the Mac at least, this causes the browser to interpret the tags regardless of the header. Without <html>, the rest of the html tags will show up as plain text. Matt

« previous php.general (#60783) next »