Keep newlines from textarea?..


Posted on 16th Feb 2014 07:03 pm by admin

I'm creating a simple encoding program, and what I want it to do is retain the newlines, as echoing a textarea for example will strip them out (I think). How do I retain the n's or whatnot and place them into a single string along with the text? will it be too much trouble?

Did you know?Explore Trending and Topic pages for more stories like this.
I just want it simple so I can nl2br() it in the end. I don't know what html/PHP does when it POSTS's data from a textarea.
No comments posted yet

Your Answer:

Login to answer
150 Like 43 Dislike
Previous forums Next forums
Other forums

$action = "insert"; //$action = $_GET['action'];
$action = "insert";
//$action = $_GET['action'];

why is this invalid type? I am

how to get different value in second view of webdynpro?
hello guys,

In ABAP webdynpro I am trying to create one application having two views.

Passing Variables
What I'm wanting to do is when the user clicks on Arenas it will know the name of the country it's w

losing session vars when arriving from an email link
Hi,

I've got a confirmation script made that sends an email with a link for a user to confirm

Something Non-Traditional. Can we solve?
I have an idea for an application here. It's mostly flash, but it couldn't work without a somewhat n

unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_
Can anyone view my code and tell me why im getting the error:
Parse error: syntax error, unexpect

Spliting paragraph into sentences and attach in
Here is what I am trying to do

example: Para1[123.456.789!] 3 sentences
Para2

Packet Design
Hi All,
Im new about network programming and I want to design a protocol but I have some question

split string
Hi all

i have some names (imploded by comma):
Code: toronto,paris,madrid
Now, i would

'210010106140040100' == '210010106140040101'
Debugging this simple line of a PHP script

Code: if($a == $b){ }
I've found that with val

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash