Re: Html_Quickform multiple forms
| From: | Alexey Borzov | Date: | Tue, 20 Jun 2006 20:44:04 +0000 |
| Subject: | Re: Html_Quickform multiple forms | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24442@lists.php.net to get a copy of this message | ||
Hi,
Atif Khan wrote:
I am using two forms, but the the add rule will not say that the field is required. <?php $form1->display(); if ($form1->validate()){ print "this is Form 1"; } $form2->display(); if ($form2->validate()){ print "form_2"; } ?>You should validate() before you display().