From: Rod K <rod@23net.net>
To: Michael Hanna <taojones@sympatico.ca>
To: pgsql-php@postgresql.org
Subject: Re: newlines won't display in browser
Date: Sun, 12 Oct 2003 22:36:55 -0400
Message-ID: <KNEPILBLIADCDMMPIKIKMEHNDAAA.rod@23net.net> (raw)
In-Reply-To: <2CCFF91A-FD21-11D7-A49D-00039308EB2C@sympatico.ca>
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
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: rod@23net.net, taojones@sympatico.ca
Subject: Re: newlines won't display in browser
In-Reply-To: <KNEPILBLIADCDMMPIKIKMEHNDAAA.rod@23net.net>
References: <2CCFF91A-FD21-11D7-A49D-00039308EB2C@sympatico.ca> <KNEPILBLIADCDMMPIKIKMEHNDAAA.rod@23net.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox