Fetched text looses layout...how can I keep it?

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Fetched text looses layout...how can I keep it?

    Hi!

    Here's the problem. I have a comments textfield in my insert form. There ppl
    can type any kind of text, say for example:

    Hello!
    Cool site here!
    Cheers!

    After submitting, everything is fine. I check the db (mySQL), and the text
    looks fine there, including the layout. However, when I retrieve the text on my
    'view comments' page, the format is gone! Is shows the text like this:

    Hello! Cool site! Cheers!

    Where are my hard returns? I saw that the recordset already looses the
    layout... Any suggestions as to how I can show these comments in there original
    layout? I con't put the site online like this...

    Thanks!!!
    Magiel

    janson_m Guest

  2. Similar Questions and Discussions

    1. Adobe CS2 looses live text fields in PDF files when saved back out
      We have a customer that provides us with PDF files that contain text fields. We need to add graphics in AICS2 and then save the PDF file back out....
    2. Text Layout In Flash Form
      I've serached for an answer and cant seem to find a way to control where text is displayed on my flash form. Basically I want 2 columns of text...
    3. Missing text sections in layout printed to plain text
      Hi - I am printing out one long text inserted (pasted) in a textbox in one body section which spans multiple pages. Within this text (source...
    4. emailing with an attachment that has fetched from db (longblob)
      I am trying to send an email with an attachment. The problem is the attachment is stored in db where I have created a longblob field that contains...
    5. Fixed Width layout cells expanding with text ??
      Hi - got the same problem I went trhough the tutorial, but have some questions: When it talked about 'balloon cell', and wrote "I have a small...
  3. #2

    Default Re: Fetched text looses layout...how can I keep it?


    "janson_m" <webforumsuser@macromedia.com> wrote in message
    news:dfk1dl$cej$1@forums.macromedia.com...
    > Hi!
    >
    > Here's the problem. I have a comments textfield in my insert form. There ppl
    > can type any kind of text, say for example:
    >
    > Hello!
    > Cool site here!
    > Cheers!
    >
    > After submitting, everything is fine. I check the db (mySQL), and the text
    > looks fine there, including the layout. However, when I retrieve the text on
    > my
    > 'view comments' page, the format is gone! Is shows the text like this:
    >
    > Hello! Cool site! Cheers!
    >
    > Where are my hard returns? I saw that the recordset already looses the
    > layout... Any suggestions as to how I can show these comments in there
    > original
    > layout? I con't put the site online like this...
    >
    > Thanks!!!
    > Magiel
    >
    *If* you are using PHP, take a look at nl2br().

    The php documentation is available at:

    [url]http://www.php.net/docs.php[/url]

    HTH

    -Rb

    -Rb Guest

  4. #3

    Default Re: Fetched text looses layout...how can I keep it?

    This link will tell you how to do it in almost any language.

    [url]http://www.jeremysmeltzer.net[/url]
    bigj9901 Guest

  5. #4

    Default Re: Fetched text looses layout...how can I keep it?

    I *AM* using PHP, sorry for not mentioning that, and I checked out the nl2br() function. It worked beautifully! Thanks you very much! Problem solved.

    Magiel
    janson_m Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139