Re: QuickForm javascript / setDefaults
| From: | Peter McMillan | Date: | Fri, 09 Apr 2004 15:02:04 +0000 |
| Subject: | Re: QuickForm javascript / setDefaults | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-11763@lists.php.net to get a copy of this message | ||
Alexy,
On 2004-Apr -09, , at 1:26 AM, Alexey Borzov wrote:
Hi! Peter, first of all: your problem description was completely misleading. You mentioned *javascript* validation, while in reality had problems with *server-side* one. I'd answer much sooner if the problem was correctly described...my apologies. I can now see how the problem description was wrong.
Second thing: submitted values validation is designed to, uh, validate *submitted* values. If you do a HTTP redirect, you don't have *any* submitted values, thus the errors. Defaults are not considered submitted, they are just for display purposes. ok. I didn't pick up on the difference in submitted vs. defaults in the documentation.
Third thing: consider looking at HTML_QuickForm_Controller, it was designed with such applications in mind.I'll start reviewing those docs next. Thanks again for the comments; I think I know how to approach this issue now. Peter