Hi!
I have quite simple form (it has textarea input), where I can write for
example:
Data1
Data2
This is text
So, input contains spaces, linefeeds and so on...
When I make page, which read data from this textarea-field, data came from
without
spaces and linefeeds. How to correct
Hi!
I have quite simple form (it has textarea input), where I can write for
example:
Data1
Data2
This is text
So, input contains spaces, linefeeds and so on...
When I make page, which read data from this textarea-field, data came from
without
spaces and linefeeds. How to correct
You must convert \n to br and spaces to nbsp; You can use
strreplace() or some other function that exist in PHP just for that...
Tommi Virtanen wrote:
Hi!
I have quite simple form (it has textarea input), where I can write for
example:
Data1
Data 2
This is text
So, input contains
Hello Tommi,
Monday, February 23, 2004, 10:25:10 AM, you wrote:
TV So, input contains spaces, linefeeds and so on...
TV When I make page, which read data from this textarea-field, data
TV came from without spaces and linefeeds. How to correct this
TV problem?
The characters will still actually
From: Miguel J. Jiménez [mailto:[EMAIL PROTECTED]
You must convert \n to br and spaces to nbsp; You can use
strreplace() or some other function that exist in PHP just for that...
nl2br() should do that.
Usage: nl2br($foo)
$foo is your textarea variable.
--
PHP General Mailing List
5 matches
Mail list logo