problem with page refresh

Results 1 to 4 of 4

Thread: problem with page refresh

  1. #1
    probs in AZ Guest

    Default problem with page refresh

    I have a summery page that inserts a new record into a database from method="post" form variables after a user has filled out a form. Upon this process a unique ID is snagged from a stored procedure and gets inserted into the table along with the form data. My problem is: If a user decides to "refresh" the page after the insert has occured, my page re-loads, gets sent the same form variables, gets a new unique ID and inserts another record into the DB with all of the same info from the previous post but now with a NEW ID number! How can I prevent another insert from occuring???

  2. #2
    Join Date
    Dec 1969

    Default RE: problem with page refresh

    After they submit the info, push &#039;em to another page. <BR><BR>

  3. #3
    probs in az Guest

    Default RE: problem with page refresh

    The page that does the insert is the summary page where the new record gets displayed (after inserted) in case the user wants to update the record. It would be a big re-design to push the user to another page.

  4. #4
    Join Date
    Dec 1969

    Default RE: problem with page refresh

    Set a flag (session varible perhaps?) that says they have already registered... then when they refresh, it will just skipp over that stuff.<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts