Solved

Need a solution please

Posted on 2004-09-19
3
143 Views
Last Modified: 2013-12-24
We are having problems with users using the 'Back' button in their browser.

We have a page called EditInvoiceDistribution
within this page a user may need to edit a text field named "DistAmount" ; This is a numeric field only.
This field could be blank or it could be populated with existing numbers. A user will normally edit this field then they will click a button called 'Update'.

This action calls a page called EditUpdateInvoicedDistribution, which takes the figures from DistAmount and updates it in a couple tables. After the update, the page is immediately redirected to another page - EditVendorInvoice - so the user can see the changes they made.

On with the problem: Occasionally users will click the browsers back button to edit the change again. When they do this it opens the page from before called EditInvoiceDistribution - and the original numeric value appears from before in the "DistAmount" field! - NOT the value they just entered..... so they enter in a different value, click 'Update' etc. etc. This is causing  inaccurate data - which we all know can be a serious problem. Does anyone have any suggestions as to how I can prevent this from happening? If code is needed please let me know - there is quite a bit though.

Thanks
0
Comment
Question by:stltodaycom
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 17

Accepted Solution

by:
anandkp earned 125 total points
ID: 12099607
u cld avoid this by the way u write ur code - so that the back/refresh button is ineffective

but u cld avoid caching of the intermediate page ... so that incase they use the back button - they get a fresh copy of the intermediate page.
<cfheader name="Expires" value="-1">
<cfheader name="ExpiresAbsolute" value="Now() - 1">
<cfheader name="pragma" value="no-cache">
<cfheader name="cache-control" value="private">
<cfheader name="CacheControl" value="no-cache">

lemme know ...
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question