Re: [PHP] Back Button Dilemma's

2001-04-10 Thread Plutarck

If you know javascript, you might try something like history.go(20) on each
page.

It _should_ cause the user to catapult forward in their history list each
time they load the page. If they haven't used their back button, then having
javascript "push" their forward button should do nothing.

That keeps them from going back and changing a selection.

The other way is when someone submits the page, save that data so that if
the person resubmits the page not only are the changes ignored, but they are
redirected to the page they should be on.

Or ideally you can just make the whole thing in one php page. When someone
submits their info, save it and give them the next form. (the best way to do
it)

Or you could just use the good ole fashion flash applet, which breaks most
people's back buttons :) (that can be gotten around, of course, and only
happens on some peoples systems)


--
Plutarck
Should be working on something...
...but forgot what it was.


""RealGM"" [EMAIL PROTECTED] wrote in message
009901c0c17f$ed066300$9d14c9cb@m3g7o5">news:009901c0c17f$ed066300$9d14c9cb@m3g7o5...
Hi Guys,

I know everywhere it says that it is not possible to actually disable the
back button, and people have offered some solutions that have not worked for
me, this is why I am emailing this list.

I have a form which displays the same page with new content (controlled by a
counter) in a loop until an exit point is reached.  When the user clicks
back on the browser the counter still increments and the screen continues
like the user pressed the continue button (which is the process I want the
user to take).  The problem is the user did not make a selection and this is
where the problem lies (it takes the default, which throws the whole process
out of whack).

The question I am asking is how can I prevent the user trying to go back?
Is there any code out there which can counter this action (and not cause my
counter to increment, thus moving the user to the next screen)?  Is there
any way to detect that the back button/option has been selected and display
a "warning" type page before going back to where the user is?  The forward
counter action does not really fix my problem.

Thanks,
Michael.

Chief Information Officer,
RealGM, Inc.
http://www.realgm.com





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Back Button Dilemma's

2001-04-10 Thread Robert Vetter



RealGM wrote:
 
 Hi Guys,
 
 I know everywhere it says that it is not possible to actually disable the back 
button, and people have offered some solutions that have not worked for me, this is 
why I am emailing this list.
 
 I have a form which displays the same page with new content (controlled by a 
counter) in a loop until an exit point is reached.  When the user clicks back on the 
browser the counter still increments and the screen continues like the user pressed 
the continue button (which is the process I want the user to take).  The problem is 
the user did not make a selection and this is where the problem lies (it takes the 
default, which throws the whole process out of whack).

Before I can help you:
How did you programm the counter? Do you forward it in a HTML-form to
the PHP script? Or do you use the counter only server-side?
Please attach the code.

Robert

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Back Button Dilemma's

2001-04-09 Thread RealGM

Hi Guys,

I know everywhere it says that it is not possible to actually disable the back button, 
and people have offered some solutions that have not worked for me, this is why I am 
emailing this list.

I have a form which displays the same page with new content (controlled by a counter) 
in a loop until an exit point is reached.  When the user clicks back on the browser 
the counter still increments and the screen continues like the user pressed the 
continue button (which is the process I want the user to take).  The problem is the 
user did not make a selection and this is where the problem lies (it takes the 
default, which throws the whole process out of whack).

The question I am asking is how can I prevent the user trying to go back?  Is there 
any code out there which can counter this action (and not cause my counter to 
increment, thus moving the user to the next screen)?  Is there any way to detect that 
the back button/option has been selected and display a "warning" type page before 
going back to where the user is?  The forward counter action does not really fix my 
problem.

Thanks,
Michael.

Chief Information Officer,
RealGM, Inc.
http://www.realgm.com