Send and retrieve HTML code to/from SQL Server

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Send and retrieve HTML code to/from SQL Server

    I need a solution for the following:

    I have a flashform with several cftextarea's to INSERT a record and an output
    PDF file to retrieve a record.

    Problem: html-tags like <br> changes to a musical note on INSERT and any
    output except cftextarea ignores the tags so all the content is 'inline' (no
    linebreaks).

    Is it possible on INSERT to bring HTML-tags to a string? eg.
    firstline<br>secondline.

    pope on acid Guest

  2. Similar Questions and Discussions

    1. Lost CD key Code can I retrieve it from my currently installed version?what can i do????
      I lost my CD key code for Studio MX. I am so sick over this ! What can I do???? I know Macromedia is going to have the tough luck attitude. Is...
    2. Retrieve pdf files from SQL Server
      Hi Doesn anyyone know the proper lines of ASP code to sucessfully retrieve a pdf file from SQL server. Everytime I run my code I get gibberish...
    3. Can't retrieve Code value SoapException in client application
      Hello, I've written an ASP.NET webservice. I try to recognize the type of the original exception in my client application bij setting the Code...
    4. ASP code to send SMS message
      I wonder how http://mobile.yahoo.com SMS works. By entering a phone number and service provider, how ASP page can send SMS message to a cellular...
    5. how to update and retrieve ntext fields in my asp code
      how to update and retrieve ntext fields in my asp code PLEASE HELP
  3. #2

    Default Re: Send and retrieve HTML code to/from SQL Server

    You can use the replace function to change the CR's or LF's to <br>. They are
    ASCII chars, CHR(10) and CHR(13) although I can never remember which is which,
    example:
    <cfset myText = Replace(myText,chr(10),"<br>","ALL")>
    Most people do this on the way OUT of the DB whenever the destination is other
    than a textarea. Thus you can continue to use the textatrea's for updating.
    There is no HTML equivalent for TAB's, chr(09). You could change them to 4
    nbsp's.

    JMGibson3 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