Re: [PHP-DB] retaining form information when someone presses back

2007-01-03 Thread Chris
Christopher Blöcker wrote: Flint Million: This might not be relavent for this forum, so if not please direct me to the proper one; although I do like to keep my email list subscriptions down. I have a custom application in PHP in which a user fills out a form of information. When the user

RE: [PHP-DB] retaining form information when someone presses back

2007-01-01 Thread Bastien Koert
i tend to have a function that show the form and a processing function. In the processing function i preform my sanity checks and then if there are errors pass the $_POST data back to the show_form($data, $errors) with the relevant errors. This removes the need to have the users press the back

Re: [PHP-DB] retaining form information when someone presses back

2007-01-01 Thread Christopher Blöcker
Flint Million: This might not be relavent for this forum, so if not please direct me to the proper one; although I do like to keep my email list subscriptions down. I have a custom application in PHP in which a user fills out a form of information. When the user submits, I perform sanity

Re: [PHP-DB] retaining form information when someone presses back

2007-01-01 Thread J R
try using: header http://www.php.net/header(Cache-control: private); i'm not sure that will work, try playing with header cache-control. anyway as Bastien metioned it is better to have your form redisplayed with values the user entered when validation failed rather than asking the user to click