Re: newlines won't display in browser
От | Rod K |
---|---|
Тема | Re: newlines won't display in browser |
Дата | |
Msg-id | KNEPILBLIADCDMMPIKIKMEHNDAAA.rod@23net.net обсуждение исходный текст |
Ответ на | newlines won't display in browser (Michael Hanna <taojones@sympatico.ca>) |
Список | 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 по дате отправления: