Using CFFILE to create HTML page?

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default Using CFFILE to create HTML page?

    Is it possible to use the CFFILE tag to specify that a HTML file be
    created, based on user input? I'm trying to allow users to create a
    'diary' of sorts. The file will be saved to the servers hard drive, but
    when they pull it back up, I want to have H1 and other tags formatted
    nicely.

    I haven't been able to do that with just a plain text file.

    Steve
    Steve Grosz Guest

  2. Similar Questions and Discussions

    1. Flash .html Plays on Server but NOT on html page
      Sorry for being so green. Running IIS Microsoft Server 1. Installed FMS 2. Installed Player 8 and 9 Uploaded .flv and .swf files to server....
    2. How to create a html page
      Hello,i am very new to dreamweaver 8,and i have searched everwhere possible on how to create a html page.My website has a navegation bar.And on the...
    3. Create a new dynamic html page
      I would like to use flash to create an input text area for practicing HTML scripting where you click the process button and then coldfusion will...
    4. How do you create a PHP page on an html doc
      In order for the PHP extension to work it will need to be on a page with a PHP extension. If you insert php script on an HTML page the http server...
    5. Calling a html page from an asp page then returning to the next statement on the original asp page
      Hi! I have an ASP page that calls excel to create a report. This works fine. Now I need to call a html calendar page to filter what rows are...
  3. #2

    Default Re: Using CFFILE to create HTML page?

    Just write all the tags and content as a variable and then use cffile action="write" and save it as an html file.
    Stressed_Simon Guest

  4. #3

    Default Re: Using CFFILE to create HTML page?

    A nice tip is to use <cfsavecontent>, <cfset> and <cffile> together - then you
    can create almost anything, including cfm-files with cf-code in them.

    <cfsavecontent variable="test">
    <h1>This is my heading</h1>
    <strong>this is my my bolde text</strong>
    <cfsavecontent>

    <cffile action="WRITE" file="X:\Inetpub\wwwroot\MyFile.html" output="#test#">



    Trygve 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