Solved

Need a solution please

Posted on 2004-09-19
3
132 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
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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 …
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now