Re: [PHP] Form Data & History

2002-02-12 Thread Sebastian Benoit

Analysis and Solutions([EMAIL PROTECTED])@2002.02.11 23:19:57 +:
> > back'... but upon going back in history, all the data that was in the
> > form is lost. This did not occur on my regular not-secure web server.
> 
> Page caching.  You can alter that through the header() function.  But, a

No, you can't.

At least mozilla does not honour "Cache-Control" for SSL connections. I
haven't checked if thats because Cache-Control is not part of HTTPS (?) or
if its for security reasons. SSL connections are treated like
"Cache-Control: no-store".

> cleaner way handle user validation problems is to reprint the form and data
> on the present page.  I like to have both the initiating form and the form

yep.

/B.

-- 
Sebastian Benoit <[EMAIL PROTECTED]>
GnuPG 0x5BA22F00 2001-07-31 2999 9839 6C9E E4BF B540  C44B 4EC4 E1BE 5BA2 2F00

Life is Xerox , you are only a copy



msg49620/pgp0.pgp
Description: PGP signature


Re: [PHP] Form Data & History

2002-02-11 Thread Analysis and Solutions

Howdy Steven:

Steven Walker wrote:
> 
> If data is missing or incorrect, the user is alerted to 'go
> back'... but upon going back in history, all the data that was in the
> form is lost. This did not occur on my regular not-secure web server.

Page caching.  You can alter that through the header() function.  But, a
cleaner way handle user validation problems is to reprint the form and data
on the present page.  I like to have both the initiating form and the form
validation take place in the same script.  Put the form itself in a function
or an include file.  The form should use PHP variables in the value.  If
there are validation problems, tell the user what's up and have the script
re-display the form and the data they just entered will be filled in!  An
example of such an input element would be...



Enjoy,

--Dan

-- 
PHP scripts that make your job easier
  http://www.analysisandsolutions.com/code/
 SQL Solution  |  Layout Solution  |  Form Solution
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Ave, Brooklyn NY 11232v: 718-854-0335f: 718-854-0409

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php