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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-php by date

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