Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6037641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:06:15+00:00 2026-05-23T06:06:15+00:00

Well, my problem is what the title says. I have build a small application

  • 0

Well, my problem is what the title says.
I have build a small application (php + mysql), to test my skills in an e-commerce environment – 6 pages in total.

Each page after the 1st, relies on an id to retrieve/save data. This id is passed usually as hidden form field between pages.

On top of each page i have a small script that checks in what state is the selected id (2 checks actually…. a) if user has reached the last page/step of application and b) if a fantastic payment has been completed for this user) – if both of these conditions are valid, then i redirect user to a thank you page, stating that his process is already completed and he can choose to start over.

Yet i have problems with hitting the back button on my browser.
Hitting the back button once, works good – validation check forces the redirect i have implemented in my code.

But hitting the back button fast for 2 or more times, break this script – leading to lost records in my database – in live environment these will be purchases.

So my question is this: what measures should i take to prevent the “back hitting user” of duplicating/deleting/overwrite data records in the application.
I am looking for ideas and strategies.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T06:06:15+00:00Added an answer on May 23, 2026 at 6:06 am

    Check wether the user is eligble for the thank-you page on any of the pages. You can do this with sessions or by storing a flag into the database.

    If a user that has finished the checkout already moves back more than one step you can check on that page if the user has already the checkout done or not – an react according to it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

well, the title pretty much says it all. here's a little info: i have
Well here's my problem I have three tables; regions, countries, states. Countries can be
I'm sorry if I didn't explain my problem well enough in the title. In
The title describes my problem quite well. The offending line of code: connect(table, SIGNAL(cellChanged(row,
Well, sorry about the confusing title but I'm having a slightly annoying problem with
Title should make my problem well described.Here goes my code. <div id=adiv><text>Some text</text></div> <script
I have been working on a small Chrome extension with a problem I cant
Well, as in the title, I am having a problem due to those things.
as the title says, I want to make a tab interface where I have
I have a layouting problem with my android application: I have a Listview consiting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.