Re: [PHP] Disabling Browser "BACK" button
on 01/08/02 3:42 AM, Petre ([EMAIL PROTECTED]) wrote: > Well, OK, then, How do you design the app NOT to allow the form to POST > again when the user hits "BACK" The PHP script that process' the form submission shouldn't be an actual page that sends stuff to the browser. 1. form.php POSTs to parse.php 2. parse.php validates the submitted data, adds stuff to DBs, emails people, whatever, then does a header('Location: thanks.php') redirect (not outputting anything to the browser). if there's a an error in the data, it redirects back to form.php with an error message. 3. thanks.php says thanks for submitting the form When they hit "back" from thanks.php, they get the form again, and would have to click submit again to repost. When they click forward, they get the thankyou page. Since the script that adds stuff to the DB was never on the browser, it's impossible to refresh it and double-post. If you work on it, this can actually all be done within one php script, rather than 3. Good luck, Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Disabling Browser "BACK" button
Actually a meta refresh isnt a good idea for this example. id personally use a header, because then there is no entry in the back list for the processing page, unlike if u used a meta refresh, which, if i am correct, leaves an entry. Jason Reid [EMAIL PROTECTED] -- AC Host Canada www.achost.ca - Original Message - From: "Lee" <[EMAIL PROTECTED]> To: "César Aracena" <[EMAIL PROTECTED]>; "'Petre'" <[EMAIL PROTECTED]> Cc: "'php-general'" <[EMAIL PROTECTED]> Sent: Wednesday, July 31, 2002 12:17 PM Subject: Re: [PHP] Disabling Browser "BACK" button > An Idea I have just had but not tested. > > To start:- > Page1 - Input Form > Page2 - Data Handling (i.e. processing the form) > Page3 - Redirect handler. > > So, User fills in form on Page1 then submits it. Page2 then processes this > data and if it handles it correctly it simply sends a redirect (something > like a Meta Refresh with time set to 0) to Page3 which then sends you onto > the final page. > > By using a querystring variable and checking this in page2 you could > probably get rid of Page3 and have its part handled in page2. > > I hope this makes sense. > > Cheers > > Lee > - Original Message - > From: "César Aracena" <[EMAIL PROTECTED]> > To: "'Petre'" <[EMAIL PROTECTED]> > Cc: "'php-general'" <[EMAIL PROTECTED]> > Sent: Wednesday, July 31, 2002 7:06 PM > Subject: RE: [PHP] Disabling Browser "BACK" button > > > Well... you simple can't unless you take advantage from all the > wonderful features of PHP like it's capability to know where the request > comes from. Another interesting point would be to see if your program is > made correctly, so your script(s) will handle just the right stuff. That > is, if you point your form in Page1 to a Script in Page2, you should be > pretty sure that it will handle the right stuff. After all the handling > was done, you should be able to unset the variables in order *FORBID* > the user to push the REFRESH or BACK buttons, submitting the data all > over again. > > > -Original Message- > > From: Petre [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, July 31, 2002 2:50 PM > > To: César Aracena > > Cc: php-general > > Subject: Re: [PHP] Disabling Browser "BACK" button > > > > 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:[EMAIL PROTECTED]] > > >>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 to > > >> > > >POST > > > > > >>again when the user hits "BACK" > > >> > > >>Martin Clifford wrote: > > >> > > >>>There is never a way to disable back, forward, home, etc buttons. > > >>> > > >They > > > > > >>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 client > > >> > > >cannot > > > > > >>use the back button without getting mishapen results, then it > doesn't > > >>sound as if the site is designed very efficiently. > > >> > > >>>Just my opinion. > > >>> > > >>>Martin Clifford > > >>>Homepage: http://www.completesource.net > > >>>Developer's Forums: http://www.completesource.net/forums/ > > >>> > > >>> > > >>>>>>Petre <[EMAIL PROTECTED]> 07/31/02 01:16PM >>> > > >>>>>> > > >>>HI > > >>>Is there a way I can disable the client's browser back button, > > >>> > > >forcing > > > > > >>>them
FW: [PHP] Disabling Browser "BACK" button
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 ""; 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:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 11:54 AM To: Dan Vande More; Petre; [EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Disabling Browser "BACK" button
Exactly. The only way I've seen that this can be prevented is if the form action is PHP_SELF, so, you call the page onto itself and use a isset($submit), but I have reasons for not going that route, one being that I have already have a navigation laid out, and changing that will be a nightmare! Chris Boget wrote: >>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 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Disabling Browser "BACK" button
On processing page (I.e the form's action page - where the stuff is entered into the db) set another session var so that your app knows that the form has been submitted, data entered etc. The actual form page should have some extra logic at the top which checks for this extra session var, redirecting to an 'already done this' page if the var is set. I suppose this logic should also exist in the action page, in case the user hits back and browser reposts the data. Example: 1. User fills out form on 'form.php' and hits submit - browser loads 'action.php' 2. action.php checks for $_SESSION['formIsFilled'] and redirects if found, enters data into db otherwise. 3. user hits back and goes back to form.php - if browser has cached then user will be able to resubmit but will be caught at step2. If the browser didn't cache they'll be caught here. This method will prevent them resubmitting for the length of their session (or until $_SESSION['formIsFilled'] is unset) HTH Danny. - Original Message - From: "Chris Boget" <[EMAIL PROTECTED]> To: "Dan Vande More" <[EMAIL PROTECTED]>; "Petre" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, July 31, 2002 6:53 PM 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 > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Disabling Browser "BACK" button
An Idea I have just had but not tested. To start:- Page1 - Input Form Page2 - Data Handling (i.e. processing the form) Page3 - Redirect handler. So, User fills in form on Page1 then submits it. Page2 then processes this data and if it handles it correctly it simply sends a redirect (something like a Meta Refresh with time set to 0) to Page3 which then sends you onto the final page. By using a querystring variable and checking this in page2 you could probably get rid of Page3 and have its part handled in page2. I hope this makes sense. Cheers Lee - Original Message - From: "César Aracena" <[EMAIL PROTECTED]> To: "'Petre'" <[EMAIL PROTECTED]> Cc: "'php-general'" <[EMAIL PROTECTED]> Sent: Wednesday, July 31, 2002 7:06 PM Subject: RE: [PHP] Disabling Browser "BACK" button Well... you simple can't unless you take advantage from all the wonderful features of PHP like it's capability to know where the request comes from. Another interesting point would be to see if your program is made correctly, so your script(s) will handle just the right stuff. That is, if you point your form in Page1 to a Script in Page2, you should be pretty sure that it will handle the right stuff. After all the handling was done, you should be able to unset the variables in order *FORBID* the user to push the REFRESH or BACK buttons, submitting the data all over again. > -Original Message- > From: Petre [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 31, 2002 2:50 PM > To: César Aracena > Cc: php-general > Subject: Re: [PHP] Disabling Browser "BACK" button > > 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:[EMAIL PROTECTED]] > >>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 to > >> > >POST > > > >>again when the user hits "BACK" > >> > >>Martin Clifford wrote: > >> > >>>There is never a way to disable back, forward, home, etc buttons. > >>> > >They > > > >>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 client > >> > >cannot > > > >>use the back button without getting mishapen results, then it doesn't > >>sound as if the site is designed very efficiently. > >> > >>>Just my opinion. > >>> > >>>Martin Clifford > >>>Homepage: http://www.completesource.net > >>>Developer's Forums: http://www.completesource.net/forums/ > >>> > >>> > >>>>>>Petre <[EMAIL PROTECTED]> 07/31/02 01:16PM >>> > >>>>>> > >>>HI > >>>Is there a way I can disable the client's browser back button, > >>> > >forcing > > > >>>them to use the navigation I built into the page? > >>>Ideally, when they try to press "BACK" on browser, a popup asking > >>> > >them > > > >>>to 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 > >> > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Disabling Browser "BACK" button
Here's what I think may work, not sure though.. set a session variable form_submitted=false before displaying the form for input. when posted, check if form_submitted==false, then only set the session variable form_submitted to true and process it. Else show an error message If the user hits BACK button and resubmits it, then form_submitted will evaluate to true and in this case it will not be further processed. R'twick - Original Message - From: "Petre" <[EMAIL PROTECTED]> To: "Martin Clifford" <[EMAIL PROTECTED]> Cc: "php-general" <[EMAIL PROTECTED]> Sent: Wednesday, July 31, 2002 1:42 PM Subject: Re: [PHP] Disabling Browser "BACK" button > Well, OK, then, How do you design the app NOT to allow the form to POST > again when the user hits "BACK" > > Martin Clifford wrote: > > >There is never a way to disable back, forward, home, etc buttons. They 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 client cannot use the back button without getting mishapen results, then it doesn't sound as if the site is designed very efficiently. > > > >Just my opinion. > > > >Martin Clifford > >Homepage: http://www.completesource.net > >Developer's Forums: http://www.completesource.net/forums/ > > > > > >>>>Petre <[EMAIL PROTECTED]> 07/31/02 01:16PM >>> > >>>> > >HI > >Is there a way I can disable the client's browser back button, forcing > >them to use the navigation I built into the page? > >Ideally, when they try to press "BACK" on browser, a popup asking them > >to 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 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Disabling Browser "BACK" button
Well... you simple can't unless you take advantage from all the wonderful features of PHP like it's capability to know where the request comes from. Another interesting point would be to see if your program is made correctly, so your script(s) will handle just the right stuff. That is, if you point your form in Page1 to a Script in Page2, you should be pretty sure that it will handle the right stuff. After all the handling was done, you should be able to unset the variables in order *FORBID* the user to push the REFRESH or BACK buttons, submitting the data all over again. > -Original Message- > From: Petre [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 31, 2002 2:50 PM > To: César Aracena > Cc: php-general > Subject: Re: [PHP] Disabling Browser "BACK" button > > 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:[EMAIL PROTECTED]] > >>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 to > >> > >POST > > > >>again when the user hits "BACK" > >> > >>Martin Clifford wrote: > >> > >>>There is never a way to disable back, forward, home, etc buttons. > >>> > >They > > > >>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 client > >> > >cannot > > > >>use the back button without getting mishapen results, then it doesn't > >>sound as if the site is designed very efficiently. > >> > >>>Just my opinion. > >>> > >>>Martin Clifford > >>>Homepage: http://www.completesource.net > >>>Developer's Forums: http://www.completesource.net/forums/ > >>> > >>> > >>>>>>Petre <[EMAIL PROTECTED]> 07/31/02 01:16PM >>> > >>>>>> > >>>HI > >>>Is there a way I can disable the client's browser back button, > >>> > >forcing > > > >>>them to use the navigation I built into the page? > >>>Ideally, when they try to press "BACK" on browser, a popup asking > >>> > >them > > > >>>to 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 > >> > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Disabling Browser "BACK" button
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:[EMAIL PROTECTED]] >>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 to >> >POST > >>again when the user hits "BACK" >> >>Martin Clifford wrote: >> >>>There is never a way to disable back, forward, home, etc buttons. >>> >They > >>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 client >> >cannot > >>use the back button without getting mishapen results, then it doesn't >>sound as if the site is designed very efficiently. >> >>>Just my opinion. >>> >>>Martin Clifford >>>Homepage: http://www.completesource.net >>>Developer's Forums: http://www.completesource.net/forums/ >>> >>> >>>>>>Petre <[EMAIL PROTECTED]> 07/31/02 01:16PM >>> >>>>>> >>>HI >>>Is there a way I can disable the client's browser back button, >>> >forcing > >>>them to use the navigation I built into the page? >>>Ideally, when they try to press "BACK" on browser, a popup asking >>> >them > >>>to 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 >> > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Disabling Browser "BACK" button
I do it this way 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. -Original Message- From: Petre [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 11:43 AM 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 to POST again when the user hits "BACK" Martin Clifford wrote: >There is never a way to disable back, forward, home, etc buttons. They 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 client cannot use the back button without getting mishapen >results, then it doesn't sound as if the site is designed very efficiently. > >Just my opinion. > >Martin Clifford >Homepage: http://www.completesource.net >Developer's Forums: http://www.completesource.net/forums/ > > >>>>Petre <[EMAIL PROTECTED]> 07/31/02 01:16PM >>> >>>> >HI >Is there a way I can disable the client's browser back button, forcing >them to use the navigation I built into the page? >Ideally, when they try to press "BACK" on browser, a popup asking them >to 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Disabling Browser "BACK" button
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:[EMAIL PROTECTED]] > 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 to POST > again when the user hits "BACK" > > Martin Clifford wrote: > > >There is never a way to disable back, forward, home, etc buttons. They > 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 client cannot > use the back button without getting mishapen results, then it doesn't > sound as if the site is designed very efficiently. > > > >Just my opinion. > > > >Martin Clifford > >Homepage: http://www.completesource.net > >Developer's Forums: http://www.completesource.net/forums/ > > > > > >>>>Petre <[EMAIL PROTECTED]> 07/31/02 01:16PM >>> > >>>> > >HI > >Is there a way I can disable the client's browser back button, forcing > >them to use the navigation I built into the page? > >Ideally, when they try to press "BACK" on browser, a popup asking them > >to 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Disabling Browser "BACK" button
Well, OK, then, How do you design the app NOT to allow the form to POST again when the user hits "BACK" Martin Clifford wrote: >There is never a way to disable back, forward, home, etc buttons. They 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 client cannot use the back button without getting mishapen >results, then it doesn't sound as if the site is designed very efficiently. > >Just my opinion. > >Martin Clifford >Homepage: http://www.completesource.net >Developer's Forums: http://www.completesource.net/forums/ > > Petre <[EMAIL PROTECTED]> 07/31/02 01:16PM >>> >HI >Is there a way I can disable the client's browser back button, forcing >them to use the navigation I built into the page? >Ideally, when they try to press "BACK" on browser, a popup asking them >to 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
Re: [PHP] Disabling Browser "BACK" button
There is never a way to disable back, forward, home, etc buttons. They 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 client cannot use the back button without getting mishapen results, then it doesn't sound as if the site is designed very efficiently. Just my opinion. Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> Petre <[EMAIL PROTECTED]> 07/31/02 01:16PM >>> HI Is there a way I can disable the client's browser back button, forcing them to use the navigation I built into the page? Ideally, when they try to press "BACK" on browser, a popup asking them to 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Disabling Browser "BACK" button
HI Is there a way I can disable the client's browser back button, forcing them to use the navigation I built into the page? Ideally, when they try to press "BACK" on browser, a popup asking them to 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