<textarea> input help
- From: Icarus - iD_Ten_T helper <ignoranceisbliss@xxxxxxxxx>
- Date: Tue, 20 Nov 2007 02:24:39 -0800 (PST)
First of all, my apologies if this should be in a php newsgroup and
not here, but I thought this the best place to start.
I want to parse the text from a <textarea> form element but when I
pass this in a POST request to the server and then output it using
PHP, all formatting is gone.
I was under the impresssion that the textbox would register any
carriage returns or line breaks and send them in the final text for
processing?
Is there any way of forcing the textarea input to send formatting data
as well?
Essentially the idea would be to turn a text box with this in:
"Hello <= carriage return
<= line break
World <= carriage return
<= line break
Foo <= carriage return
<= line break
Bar"
into
"<p>Hello</p>
<br />
<p>World</p>
<br />
<p>Foo</p>
<br />
<p>Bar</p>"
but i can't do this is the received string at the server is does not
contain any reference to those line breaks of carriage returns. I
can't HTMLify it if you will.
Many thanks for any help you can offer
.
- Follow-Ups:
- Re: <textarea> input help
- From: SuperKoko
- Re: <textarea> input help
- From: Pete
- Re: <textarea> input help
- From: Jukka K. Korpela
- Re: <textarea> input help
- Prev by Date: Re: firefox <fieldset> oddity?
- Next by Date: Re: firefox <fieldset> oddity?
- Previous by thread: Re: firefox <fieldset> oddity?
- Next by thread: Re: <textarea> input help
- Index(es):
Relevant Pages
|