FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Session Cache
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Session Cache [message #169400 is a reply to message #169384] Thu, 09 September 2010 13:28 Go to previous messageGo to previous message
rf is currently offline  rf
Messages: 19
Registered: September 2010
Karma:
Junior Member
GarryJones wrote:
> If a user has missed something when they preview a form I want to
> return them with the back button or the cancel button to the previous
> page. Msie gives me the page expired error and firefox gives me a
> button to reload. But then of course all the entered information is
> gone...

Using the browsers back button to "backspace" to a previous page in, as you
have, a multi page form is at best fragile. It's totally up to the browser
what happens when you press it's back button. It might refresh the page from
the server. It might display the page exactly as it was last displayed. It
might display it as it was last downloaded. None of this is under your
control.

Every multi page form I have ever come across never even suggests that I use
the browsers back button. They all have two quite clearly marked submit
buttons at the bottom usually labeled [next] and [previous]. Sometimes the
previous button is also annotated with prose that sort of says if you don't
like what you see (on this preview page) then press me to "go back" to the
actual entry page.

This is, however, not a "back" button. It is a "go forward" to the page you
were on last. It might be implemented via a redirect status code so the
browsers history is sort of continuous bit it does *not* use the browsers
history, as the browsers back button does. It is all done server side, where
you *do* have total control over what you present to your user.

Do not rely on the browsers back button.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Not understanding HTML form
Next Topic: PHP variables eg. $_FILES
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 20:40:05 GMT 2024

Total time taken to generate the page: 0.03801 seconds