X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id BA5F4D1B505 for ; Mon, 13 Oct 2003 02:38:01 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 96982-07 for ; Sun, 12 Oct 2003 23:37:32 -0300 (ADT) Received: from server.yourfacility.com (server.yourfacility.com [207.103.74.10]) by svr1.postgresql.org (Postfix) with SMTP id 3A221D1B4EB for ; Sun, 12 Oct 2003 23:37:11 -0300 (ADT) Received: (qmail 56456 invoked by uid 0); 13 Oct 2003 02:37:31 -0000 Received: from unknown (HELO ROD) (141.149.245.7) by server.yourfacility.com with SMTP; 13 Oct 2003 02:37:31 -0000 From: "Rod K" To: "Michael Hanna" , Subject: Re: newlines won't display in browser Date: Sun, 12 Oct 2003 22:36:55 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <2CCFF91A-FD21-11D7-A49D-00039308EB2C@sympatico.ca> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/15 X-Sequence-Number: 2376 Do newlines show up in HTML? No, they don't, you have to use a
tag for that, which is why PHP provided the nl2br() function. > -----Original Message----- > From: pgsql-php-owner@postgresql.org > [mailto:pgsql-php-owner@postgresql.org]On Behalf Of Michael Hanna > Sent: Sunday, October 12, 2003 10:02 PM > To: pgsql-php@postgresql.org > Subject: [PHP] newlines won't display in browser > > > Hi, > > hi, how do you put a newline in a TEXT data type? > > when inputting from a form into a textarea box..the return key creates > a newline, which is reflected in psql monitor but not when displaying > the page with php > > when I try inputting \n in the browser textarea form, they appear in > the webpage for some reason, in psql monitor, they appear as "\n" but > also make a newline > > Michael > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org > >