Ask a Question related to Coldfusion - Getting Started, Design and Development.

  1. #1

    Default Preserving data

    I'm using flash forms and was wondering if data can be preserved. If a user
    enters some data and submits the form. If there is something wrong I redirect
    them back to the form but all their input is gone. How do I preserve this data?

    standardCode Guest

  2. Similar Questions and Discussions

    1. Preserving File Name
      Is there any way to force Contribute to overwrite files? We update our site daily and as a result, each time new images are loaded contribute...
    2. Preserving data in a drop down
      ok so i am also using the preserveData function on a form. it is working fine unless it is a cfselect tag for some reason it is not working on...
    3. Preserving form information
      Two problems that I'm having (due to being a n00bie) are: The form I'm using is the basic form with a username, email address etc.. the two that...
    4. Preserving desktop
      I use a screen resolution of 1024 x 768. To check that a projector looks OK at 800 x 600 I reset my machine to that resolution. Doing that messes up...
    5. Preserving Filters
      Hi, I have written an app which is using a lot of datagrids. Sorting and Filtering of recs have been done succesfully. Editing of recs being...
  3. #2

    Default Re: Preserving data

    How do you re-direct them?

    Not sure about flash forms, but, with html forms, if you submit the form, and
    then use your browswer to go back, your values will still be there. Try it
    with your form.

    If the values are still there, you can javascript them back,
    (window.history.back(1) or something like that).

    Otherwise you can make them all session variables and change your form page to
    use whatever session variables exist.

    Dan Bracuk Guest

  4. #3

    Default Re: Preserving data

    If you use CFFORM and submit the form to itself (action and form on same page)
    and use <cfform preservedata="Yes" then it will remember previous selections
    .... this works in HTML, XML, or FLASH forms.

    If you want to have your form page separate from the action page then you can
    use session variables for the form to remember them. It's a bit more work, but
    I remember doing this long ago before forms had the preservedata ability

    Relying on the browser's "memory" is not a very efficient or dependable
    solution.



    SafariTECH 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