Text wrap problem in forms

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

  1. #1

    Default Text wrap problem in forms

    (sorry, I just posted this topic on the general discussion forum - I guess it
    is better placed here)

    I work with MX on Mac OSX and MySql with the CocoaMySql gui.
    In the record insertion form I have text fields with multiple lines, and want
    the result page to show my text starting a new line every time i hit the enter
    key when i insert the text.

    But this does not work. I have tried all variations on the "wrap" selector,
    including "default" and "off". STill the text shows up as auto wrapped. It is
    also impossible to force a line break.

    However, when I open view the data content in CocoaMySql, I see that the line
    breaks are fine there. So I guess it must be the result page that is the
    problem? I also tried to choose "no wrap" in the text field in the result page,
    but that makes just on long line out of the text....

    Can anybody help?

    Thank you

    Nietsyoe Guest

  2. Similar Questions and Discussions

    1. Keep all lines together and text wrap problem
      I have my keep options set to keep ALL lines in the paragraph together, but if I have a text wrap that crosses the text block, the paragraph will...
    2. Text wrap adding a ghost Wrap???
      hello, I was working on creating a clipping mask on a photo by using the pen tool and making a silo. Then I would cut the picture and paste into...
    3. Wrap Text
      I was able to accomplish wrapping the text by grouping the picture and text in a text box - worked perfectly. "vivian" <vivian.n@suothisd.org>...
    4. Text wrap in CS
      Greetings, While trying to use the text wrap feature in AI CS, I encountered a peculiar problem. It seems that AI will attempt the text wrap, but...
    5. Text Wrap around an image pasted into a text box
      This is an imperfect workaround, but I use it quite a bit. Paste your graphic in-line, followed by a hair-space or thin-space. Then format your...
  3. #2

    Default Re: Text wrap problem in forms

    It is not do do in the actual form but in how you display the data, I have been
    using a function to do this:

    //Function to remove line brakes and to use < br > instead

    function formatText($x)
    { //$x is the string to format
    $x = str_replace("\r", "<br>", $x);
    return $x;
    }
    //End Function


    $TextToFormat = $DB_Field_With_Data;

    echo formatText($TextToFormat);

    Hope this helps

    boy mackman 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