Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

here is an interesting one

Status
Not open for further replies.

wazilian1

Programmer
Nov 8, 2002
38
US
ok, try to follow along with me. i have a .php page that you manipulate (text boxes, check boxes, etc.). this page is submitted to another .php page, updates a file, and immediately returns to that original page with the updated specs. now, when the back button is clicked, it takes you back to the same page, but with the original values, which is technically correct. however, this is the dumb part. i would like to have the back button take the user to the page before that original .php page. if thats possible. any thoughts? thanx in advance.

wazilian
King of Wazil
 
expire the page...or use the header() function to redirect the user to the previous page

Bastien

cat, the other other white meat
 
This is a common nuissance and nobody likes it.

Browsers behave differently. You can send the no-cache pragma with a header. Most browsers will honor that, like IE and go and fetch the page again.
Opera 6.0 developers for example take the standpoint that the no-cache has only to be honored when the page is accessed via a link - so their back button will bring up the cached expired page.

The only way to handle stuff like this is via a session that keeps track of the highest number of page submitted (in a step-wise process). When a lower numbered page is submitted specific action has to make sure that the form content is discarded and the request handled accordingly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top