SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Feb 2004
    Location
    forty feet from the garden
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    textarea wrap problem

    Greetings all,

    I've searched a lot but can't find an answer...

    I've made one of those blog comment entry forms (php), and all works well EXCEPT if you hold a key down long enough to create a string of characters
    that is longer than the width of the entry field.

    When I hold a key down, creating a hugely long string,
    the subsequent echo'ed display goes in one long uninterrupted string,
    straight out of the div and off the page.

    I've tried wrap=virtual and a couple of other attributes.
    I've tried putting the echo'ed comments in a <div> with a
    specified width. Nothing works.

    I realize that it's unlikely that anyone entering a comment will
    actually do that, but I'd like to prevent it from happening.

    HTML 101, or????

    Thanks.

  2. #2

    Join Date
    Oct 2003
    Location
    €uroLand
    Posts
    1,340
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wordwrap might come in handy.

  3. #3
    SitePoint Member
    Join Date
    Feb 2004
    Location
    forty feet from the garden
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    YES!!!

    I'll have a go at adjusting the parameters, but that definitely
    is much better!

    THANKS!


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
  •