Re: Disabling Browser "BACK" button
| From: | Petre | Date: | Wed, 31 Jul 2002 17:49:37 +0000 |
| Subject: | Re: Disabling Browser "BACK" button | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-110544@lists.php.net to get a copy of this message | ||
I hear you, but how do I know if the POST comes from a valid form submit, or from a "back" ? I cannot simply unset the $_POST vars, as that will prevent anything from being posted correctly, right?
César Aracena wrote:
I think that would be easy just by UNSETTING or emptying the variables that the form passed after they are processed. Do I make sence? César-----Original Message----- From: Petre [mailto:internet@vsa.co.za] Sent: Wednesday, July 31, 2002 2:43 PM To: Martin Clifford Cc: php-general Subject: Re: [PHP] Disabling Browser "BACK" button Well, OK, then, How do you design the app NOT to allow the form toPOSTagain when the user hits "BACK" Martin Clifford wrote:TheyThere is never a way to disable back, forward, home, etc buttons.all have shortcuts that will ALWAYS work, so there's really no point. Additionally, it's all nice and good that your site works fine without using cookies, and don't take this offensively, but if the clientcannotuse the back button without getting mishapen results, then it doesn't sound as if the site is designed very efficiently.forcingJust my opinion. Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/HI Is there a way I can disable the client's browser back button,Petre <internet@vsa.co.za> 07/31/02 01:16PM >>>themthem to use the navigation I built into the page? Ideally, when they try to press "BACK" on browser, a popup askingto use the navigation instead would win first prize. The reason I'm asking is again to do with sessions, I have an app running 100% now without using cookies, but if the user hits BACK and ignores the expire warning, the app produces unwanted results ( adds form data again to the db etc.) Just want to patch the holes. Maybe write my own little browser that has no back button??-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php