Skip site navigation (1) Skip section navigation (2)

Re: newlines won't display in browser

From: "Rod K" <rod(at)23net(dot)net>
To: "Michael Hanna" <taojones(at)sympatico(dot)ca>,<pgsql-php(at)postgresql(dot)org>
Subject: Re: newlines won't display in browser
Date: 2003-10-13 02:36:55
Message-ID: KNEPILBLIADCDMMPIKIKMEHNDAAA.rod@23net.net (view raw or flat)
Thread:
Lists: pgsql-php
Do newlines show up in HTML?  No, they don't, you have to use a <br /> tag
for that, which is why PHP provided the nl2br() function.

> -----Original Message-----
> From: pgsql-php-owner(at)postgresql(dot)org
> [mailto:pgsql-php-owner(at)postgresql(dot)org]On Behalf Of Michael Hanna
> Sent: Sunday, October 12, 2003 10:02 PM
> To: pgsql-php(at)postgresql(dot)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(at)postgresql(dot)org
>
>



In response to

pgsql-php by date

Next:From: Robby RussellDate: 2003-10-13 14:35:58
Subject: Re: newlines won't display in browser
Previous:From: Michael HannaDate: 2003-10-13 02:01:35
Subject: newlines won't display in browser

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group