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?

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

Asset Transfer from One plant to another within same company code
Hi,

Please advise how to transfer one asset from one plant to another plant within same c

form submit at godaddy?
Trying to test form submission at GoDaddy and it does not seem to work. Here's the page...

h

Redistributing dependent dlls
Hai all ,

I have created an application in VC++ using VS2008 in a development machine which r

Need help to modify php ELSE code
I'm trying to find a way to have the php code display a message if there is no inventory listed in t

Suggestions for Functional module
Hello experts,
I Have done B.Sc(Mathematics) and MCA & have learnt SAP/ABAP but do n

noob cURL help
I have a pretty basic form that I need to cURL post to a file in my includes folder (includes/login.

PHP/Database issue
My friend is helping me make a database where you go to a certain webpage of my site and the page wi

Creating web pages by php
Hello again,
I was just wondering us there a way to use a php script to create a new web page. I

Session variable help
I'm having a very troubling issue. Maybe I'm just looking over something but I have looked at the co

Casting Decimals in Oracle
This code worked as a query in DB2, but I am not sure what the syntax is for casting decimals in Ora

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