Professional Web Applications Themes

Text wrap problem in forms - Macromedia Dynamic HTML

(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 ...

  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. #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

Similar Threads

  1. Keep all lines together and text wrap problem
    By Carolyn_Finnell@adobeforums.com in forum Adobe Indesign Macintosh
    Replies: 0
    Last Post: September 30th, 12:58 PM
  2. Text wrap adding a ghost Wrap???
    By barbarapress@adobeforums.com in forum Adobe Indesign Macintosh
    Replies: 7
    Last Post: July 6th, 09:24 PM
  3. Text Wrap
    By Michael in forum Adobe Illustrator Windows
    Replies: 10
    Last Post: May 17th, 10:50 PM
  4. Text Wrap around an image pasted into a text box
    By Jerry_Mayeroff@adobeforums.com in forum Adobe Indesign Windows
    Replies: 0
    Last Post: April 1st, 05:42 PM
  5. WRAP text in <TD>
    By Sara T. in forum ASP.NET General
    Replies: 0
    Last Post: July 26th, 09:05 AM

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
  •  

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