Re: Fw: QuickForm: exportChangedValues / getDefault
| From: | Aidan Lister | Date: | Fri, 26 Dec 2003 03:37:41 +0000 |
| Subject: | Re: Fw: QuickForm: exportChangedValues / getDefault | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-9825@lists.php.net to get a copy of this message | ||
Sorry, that must have been in my mail queue for some reason.
Please disregard.
----- Original Message -----
From: "Aidan Lister" <support@virtualexplorer.com.au>
To: <pear-general@lists.php.net>
Sent: Friday, December 26, 2003 2:08 PM
Subject: [PEAR] Fw: QuickForm: exportChangedValues / getDefault
> Hello,
>
>
> I'd like to propose a quickform function.
>
> This function would return only 'changed' values of a form. Perhaps
> QuckForm::exportChangedValues.
>
>
> The way this function would work would be as follows:
>
> 1) Form is created
> 2) Default values are set
> 3) Form is filled with data new data
> 4) exportChangedValues is called
>
> exportChangedValues would then check the default value of each element, if
> the submitted safe value does not match - then it would return that value.
>
> This could be coded externally, however you would require a method
> QuickForm::getDefault (as opposed to setDefault).
>
>
> Thanks for listening.
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>