Re: Question Regarding HTML_QuickForm
| From: | Alexey Borzov | Date: | Wed, 24 Dec 2003 08:10:01 +0000 |
| Subject: | Re: Question Regarding HTML_QuickForm | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-9813@lists.php.net to get a copy of this message | ||
Hi!
Sanjay wrote:
1. I want to add rule for required field. This works ok, if I do client validation. For server validation, when I hit Submit button, instructions from action=action.php gets carried out and no validation is done. How to make it work ?. I am probably missing something here so please help.You are missing the obvious fact that server-side validation is performed *after* the form is submitted and in the script that accepts the submit, not *before* or *instead* or somewhere else.
2. Is it possible to addRule so that it validates from client side as well as server side as well. I mean to validation at both end. Is it possible.Yes. Server-side validation is always on, if you set the 'client' modifier, then client-side one is switched on.