For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > June 2006 > Re: [PEAR] Html_Quickform multiple forms









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] Html_Quickform multiple forms
Alexey Borzov

2006-06-24, 8:09 am

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().
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com