For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > January 2007 > RE: [PHP-DB] retaining form information when someone presses back









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

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

2007-01-01, 7:00 pm

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
button and allows the form to show its data again..

Bastien


>From: "Flint Million" <fmillion@gmail.com>
>To: php-db@lists.php.net
>Subject: [PHP-DB] retaining form information when someone presses back
>Date: Mon, 1 Jan 2007 02:13:37 -0600
>
>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 checking on the
>user's submitted data and refuse to actually process/insert it if
>those checks fail. However, my users are complaining that when they
>press back to correct, all the data is gone from the form and they
>have to re-enter it all. I know many websites that can retain the form
>data when someone presses back; how is this done?
>
>Flint M
>
>--
>PHP Database Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>


________________________________________
_________________________
Enter the "Telus Mobility Xbox a Day" contest for your chance to WIN! Telus
Mobility is giving away an Microsoft Xbox® 360 every day from November 20 to
December 31, 2006! Just download Windows Live (MSN) Messenger to your
IM-capable TELUS mobile phone, and you could be a winner!
http://www.telusmobility.com/msnxbox/
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com