Re: newlines won't display in browser - Mailing list pgsql-php

From Rod K
Subject Re: newlines won't display in browser
Date
Msg-id KNEPILBLIADCDMMPIKIKMEHNDAAA.rod@23net.net
Whole thread Raw
In response to newlines won't display in browser  (Michael Hanna <taojones@sympatico.ca>)
List 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@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
>
>



pgsql-php by date:

Previous
From: Michael Hanna
Date:
Subject: newlines won't display in browser
Next
From: Robby Russell
Date:
Subject: Re: newlines won't display in browser