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 <textareaform 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