Re: [PHP-DB] Text Control.

2001-01-12 Thread Jochen Kaiser

Hi Ian,

Have you tried to use the  nl2br-function,
which converts (OS) newline breaks, to br
HTML-tags?

You can find an exact description in the php doc.

Bye,

   Jochen

-Original Message-
From: "Ian" [EMAIL PROTECTED]
Date: Fri, 12 Jan 2001 13:53:02 +0800
Subject: [PHP-DB] Text Control.

 Dear Sir / Madam,
 
 Problem :-
 Data from HTML textarea name="test" rows="5" cols="40"
 WRAP="virtual"



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] Text Control.

2001-01-12 Thread simon

Ian wrote:

 Dear Sir / Madam,

 Problem :-
 Data from HTML textarea name="test" rows="5" cols="40"
 WRAP="virtual"/textarea is likes,
 This is a testing messages:-
 1. MSG A.
 2. MSG B.
 3. MSG C.

 So, I insert $test into MYSQL database. After that, I login into MYSQL and
 select the test field, the display is same as above. But, when I used PHP
 coding to select the test field and display it in HTML page, output likes,
 This is a testing messages:- 1. MSG A. 2. MSG B. 3. MSG C.

 How to display $test in the requested format?

 Thanks in advance.

 Best Regards,
 Ian.

 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

You could try using the nl2br function, thus converting all newline
characters to BR tags.

http://uk.php.net/manual/function.nl2br.php

--

Simon Pospisil  Mail:  [EMAIL PROTECTED]
Web EngineerWeb:   http://www.fastsearch.com/
Fast Web Media Ltd. Phone: +44 (0) 161 835 3444
Suite 1202, Sunlight House Quay Street  Fax:   +44 (0) 161 835 3488
Manchester, England M3 3JZ

Try FAST Search: http://www.alltheweb.com