Textarea content truncated

Results 1 to 5 of 5

Thread: Textarea content truncated

  1. #1
    Patrick Poer Guest

    Default Textarea content truncated

    On several production web sites, we are experiencing a very strange issue. When users are inputting information into textarea's, their posted content is truncated randomly and only a portion of the information they input is returned and entered into the database. The form is captured with ASP and then entered into a SQL server text field. The user is even able to approve their content before submitting and everything looks fine to them, it's only when it's entered into the database that some information is cut off. Additionally, it only happens to certain users, and I have never been able to recreate it??? The only way I know it's happening is by reading user posts that are cut off midway in their sentence! Please help as this is becoming a critical issue! Thanks.

  2. #2
    Lurker Guest

    Default RE: Textarea content truncated

    Just 1 idea. Is the data being truncated if the user enters a ' or a " in the text? If so, you will need to replace those chars with doubled up versions (' becomes '' - that is 2 ' marks).

  3. #3
    Join Date
    Dec 1969

    Default RE: Textarea content truncated

    If u r passing this textarea value to someother page before populating in database, it's better to ENCODE the Textarea value.

  4. #4
    Join Date
    Dec 1969

    Default RE: Textarea content truncated

    I had similair problems in PHP when a user entered a / or //, etc. Make sure you replace those characters, and encode.

  5. #5
    dingelberry Guest

    Default RE: Textarea content truncated

    had a similar problem with the # character

Posting Permissions

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