Re: Using HTML_Quickform with passed parameters

From: Date: Tue, 29 Jul 2003 10:30:41 +0000
Subject: Re: Using HTML_Quickform with passed parameters
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6885@lists.php.net to get a copy of this message
Hi, I tried the QuickForm examples with a passed parameter and it indeed showed errors the very first time. But when I changed the method from GET to POST, it didn't happen. I am also having a similar problem inspite of using method=POST. It would be helpful to understand when QuickForm decides to validate & show errors and when it decides not to. Thanks in advance, Prashant. --- Keith Edmunds <keith@midnighthax.com> wrote: > I'm trying to use HTML_Quickform, and the code is > something like: > > =================================== > require_once ("HTML/QuickForm.php"); > $form = new HTML_QuickForm('frmTest', 'get'); > $form->addElement... > > if ($form->validate()) { > $form->freeze(); > $form->process('xxxxxx', false); > } > =================================== > > Problem I had was that the form kept being validated > on first > run-through of the above code. I eventually found > the reason is because > the URL used to run that code has two parameters > passed to it, and the > validate method thinks this means the form has been > submitted. > > Is there any easy way around this? > > Thanks > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > ===== __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com

« previous php.pear.general (#6885) next »