Log in

View Full Version : textarea content- display different format



balusamy
06-19-2008, 08:10 AM
Hi

I create table one file Content data type text, I stored text from <textarea>

The content stored same format in mysql, Now the issues, When I display that value in php, it is not display same format. Kindly let us know how we solve this problem.

Example : database value ( text test test
test test test
test test test tet)

But it display text : (text test test test test test test test test test)

we need same format. kindly help this.

Thank you
Balusamy

jackbenimble4
06-19-2008, 01:06 PM
We need a little something more to go on. Code examples would be nice. If I was able to decipher your post, it sounds like you're loosing newline characters in the textarea. Personally, I've never experienced this. The textarea element is like the <pre> element in that it preserves white space. I can't think of any reason it wouldn't. Are you sure you're not stripping the '/n' newline character somewhere?