Re: Quickform - order of applyFilter() and addFormRule() ?
| From: | Skye Poier | Date: | Mon, 16 Jan 2006 22:45:37 +0000 |
| Subject: | Re: Quickform - order of applyFilter() and addFormRule() ? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-22553@lists.php.net to get a copy of this message | ||
Disclaimer: I'm a QuickForm newbie as well...
I believe (b) is correct, applyFilter() is done immediately when you call it in your PHP code. Rules are only run during validate() when the user tries to submit data.
Are you using $form->getSubmitValue('filename') ? That should return the filtered value.
Skye
On Jan 15, 2006, at 06:53, Christian Luszick wrote:
Hello, I use a custom validation rule function. My question is, what is the order of precessing QF goes? a) fixed order? 1) assign filter 2) check custom form rule / rules b) depends on the order you code it? I change a filename, to make it save to be written to a filesystem. But I want to verify this new name is not already used. So far my rule function works, but it seems not to use the *filtered* submitted value ...? -- christian luszick -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php