FW: [PHP] Disabling Browser "BACK" button

From: Date: Wed, 31 Jul 2002 18:33:17 +0000
Subject: FW: [PHP] Disabling Browser "BACK" button
Groups: php.general 
Request: Send a blank email to php-general+get-110553@lists.php.net to get a copy of this message
You are correct Chris. However if you designed your application as the generic Master-Detail-(write changes) structure you would merely have to use echo "<body onload=\"javascript:history.go(-2)\">"; to take you back to the master set, assuming js is turned on, and that is the flow of your app. I mainly design in an intranet environment, and variables are more controlled here than in other places. For instance, I'm sure that noone uses anything but IE, and JS is almost for sure on. Dan -----Original Message----- From: Chris Boget [mailto:chris@wild.net] Sent: Wednesday, July 31, 2002 11:54 AM To: Dan Vande More; Petre; php-general@lists.php.net Subject: Re: [PHP] Disabling Browser "BACK" button > Page1 (fill in data)->Page2(write data, instant redirect to p1, > unless dies from php/mysql) > Then the only way to repost, is to push the forward button. Unless, of course, they hit the "Submit" button again and I think that was the point the original poster was getting at. If the user cannot hit the back button, they cannot hit submit again. Chris

« previous php.general (#110553) next »