Re: VERY IMPORTANT: Sessions in Pages with a Form !

From: Date: Wed, 27 Sep 2000 23:10:33 +0000
Subject: Re: VERY IMPORTANT: Sessions in Pages with a Form !
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-17818@lists.php.net to get a copy of this message
What I commonly do is instead of just telling them to hit the back button, just re-print the form in the browser with the missing fields highlighted in red, seems more user friendly to me, but does take more coding. > > I have a big trouble: > > > > When I use sessions on a page that also has a form in it the back button > > doesn't work. Like when a subscriber gets an error from my script saying > > that he didn't fill the form out completely and he tries to hit back > button > > of his browser the whole form disappears. Every single field becomes > empty. > > This is common practice in some browsers I believe when under HTTPS. It > means if you're in a netcafe, noone can hit the back button and find your > CC number. > > > I know for sure that it is something that has to do with > > Try structuring your form differently so that it submits to itself. That > way you can validate the input, display the error message and redisplay > the form with the user-submitted values filled in so that they can > correct them on the same screen as the error message. This is a lot > more user-friendly. > > Jason > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#17818) next »