Preventing Browser Refresh from Incrementing Counter

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

  1. #1

    Default Preventing Browser Refresh from Incrementing Counter

    I am looking for a technique to prevent adding the same record to the database
    as result of the user 'refreshing' the browser.

    Presently on entry to the page i perform the update/insert to the datatbase
    (ACCESS) and then use a query:

    Select MAX(customerID) AS HighCust From customers

    To display the last number (MAX) to display the 'confirmation' number.

    The problem is, if the user refreshes the browser the app ADDs the record
    again and assigns the next number.... is there a technique that anyone has used
    that could prevent that from happening?

    smokin_joe Guest

  2. Similar Questions and Discussions

    1. Browser refresh
      hi, I m a newbie. i tried searching on forum but couldn find answer. I have a login view as my first view.. and then to themain view.. however...
    2. Preventing Browser Refresh from Incrmenting Counter
      I am looking for a technique to prevent adding the same record to the database as result of the user 'refreshing' the browser. Presently on entry...
    3. Preventing function output going to browser
      How do I prevent the output of a user defined function from going to the browser? In my script I do something like: $MyVar =...
    4. preventing web browser from resizing movies!
      thanks for anyone that can shed some light on this problem.....i designed a series of flash movies that are 600 by 600 pixels, and subsequently...
    5. [PHP] Incrementing counter from an HTML page.
      i think you can use image counter a tag img connect to our script, something like this <img src="phpcounter.php"> where the file...
  3. #2

    Default Re: Preventing Browser Refresh from Incrementing Counter

    Once the database insert has been completed then use cflocation to move to a new page. Then if the user refreshes the page it will only reload the new page and not the action page that did the upload!
    Stressed_Simon 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