Re: [PHP] Sessions Lose Form Field Data When Back Button Used?

2007-07-20 Thread Richard Lynch
On Tue, July 17, 2007 9:43 pm, Instruct ICC wrote: Ignore this problem for awhile and see if it doesn't go away. (read: you realize it's not really a problem) Are you really a CEO? I like your style. Well, there really is a C-corp Lynch Interplanetary Enterprises, Inc But let's just say that

Re: [PHP] Sessions Lose Form Field Data When Back Button Used?

2007-07-17 Thread Instruct ICC
From: Chris [EMAIL PROTECTED] That has to be your code re-setting the session variables or something. PHP won't do this automatically for you. Well I suppose it's or something. Try this code. Name it test.php: ?php //session_start(); $notice = ; if($_SERVER['REQUEST_METHOD'] == POST){

Re: [PHP] Sessions Lose Form Field Data When Back Button Used?

2007-07-17 Thread nor0101
Instruct ICC wrote: I have an old PHP page without sessions. When the user submits the form, and then clicks the browser back button, the prior form data is retained. What method is your form using, get or post? If post, usually the browser would give some sort of warning to the user

Re: [PHP] Sessions Lose Form Field Data When Back Button Used?

2007-07-17 Thread Chris Shiflett
Instruct ICC wrote: I have an old PHP page without sessions. When the user submits the form, and then clicks the browser back button, the prior form data is retained. If I now have that PHP page require another page that uses session_start, when the user submits the form, and then clicks

Re: [PHP] Sessions Lose Form Field Data When Back Button Used?

2007-07-17 Thread Richard Lynch
On Mon, July 16, 2007 12:33 pm, Instruct ICC wrote: I have an old PHP page without sessions. When the user submits the form, and then clicks the browser back button, the prior form data is retained. This is actually almost for sure browser dependent behaviour... Some browsers will reset to

Re: [PHP] Sessions Lose Form Field Data When Back Button Used?

2007-07-17 Thread Instruct ICC
From: Chris Shiflett [EMAIL PROTECTED] This is a characteristic of the caching headers that session_start() sends. Although not directly related to your question, I think the following article articulates this in sufficient detail:

Re: [PHP] Sessions Lose Form Field Data When Back Button Used?

2007-07-17 Thread Instruct ICC
From: Richard Lynch [EMAIL PROTECTED] It's still browser-dependent, really, but now your browser isn't doing what YOU want for your form-filling-in-experience... I like this. I'll have to add it to my operator error, pass the buck bag of tricks. There's still nothing you can do about it

[PHP] Sessions Lose Form Field Data When Back Button Used?

2007-07-16 Thread Instruct ICC
I have an old PHP page without sessions. When the user submits the form, and then clicks the browser back button, the prior form data is retained. If I now have that PHP page require another page that uses session_start, when the user submits the form, and then clicks the browser back button,

Re: [PHP] Sessions Lose Form Field Data When Back Button Used?

2007-07-16 Thread Chris
Instruct ICC wrote: I have an old PHP page without sessions. When the user submits the form, and then clicks the browser back button, the prior form data is retained. If I now have that PHP page require another page that uses session_start, when the user submits the form, and then clicks