file creation & variables

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default file creation & variables

    I have a .cfm page that uses cffile to copy itself with the dynamic form
    content to create the new .cfm file. It works fine and creates the file. You
    can view the file in a browser. The problem is.... When you clear the cache and
    delete the cookies the variables loose their value & my new file no longer
    opens.

    Is there anyway to create a new file with static values (that are passed to
    the cfform)??? Please help!

    cf_chick Guest

  2. Similar Questions and Discussions

    1. File creation problems
      Hi, I'm pretty new at writing extensions so I'm quite certain my problem is a mistake on my part. I've written a piece of code that takes a data...
    2. STC file creation automation
      Is there a way to automate the creation of STC files? We find creating connection keys for our clients to be too much work, and it would be nice to...
    3. XML File creation
      I am generating xml output from a cfquery. <cfxml variable="Contact" casesensitive="yes"> <Contact> <cfoutput query="GetName"> <phonenum...
    4. Variables in html and user creation
      im literate in html and im still wondering how a site like that neo pets game http://www.neopets.com has users create there own names, be able to...
    5. Global variables - application variables vs include file
      What are the best methods for using global constants and variables? I've noticed that many people put all global constants in a file and include...
  3. #2

    Default Re: file creation & variables

    What's your goal? To create static (no variable interaction) cfm files? You'd have to write the entire file out to a variable and inject the passed variable values literally.
    philh Guest

  4. #3

    Default Re: file creation & variables

    Yes, to create a new complete file that will hold the many variable values that
    were passed during the 5 page process. I did not know you could save an entire
    file in a variable. What is the tag or function for this?
    :o

    cf_chick Guest

  5. #4

    Default Re: file creation & variables

    Use CFFILE Action="READ".
    philh Guest

  6. #5

    Default Re: file creation & variables

    Also check out cfsavecontent
    Mike Greider Guest

  7. #6

    Default Re: file creation & variables

    My question is why are you using CFFile to create files at runtime... shouldnt
    you just save the data to the DB as your going between pages? or in a session
    structure so you can just go back and fourth?

    david_h Guest

  8. #7

    Default Re: file creation & variables

    Thank you for the help. I realize that it is better to save the data. I have changed my program to do just that. I will check the other tags mentioned.
    cf_chick 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