Results 1 to 2 of 2

Thread: textarea content- display different format

  1. #1
    Join Date
    Oct 2007
    Location
    Chennai - India
    Posts
    24
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default textarea content- display different format

    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

  2. #2
    Join Date
    Aug 2007
    Location
    Ohio
    Posts
    79
    Thanks
    0
    Thanked 15 Times in 15 Posts

    Default

    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?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •