Re: any examples of using HTML_QuickForm to add users?

From: Date: Thu, 11 Nov 2004 00:43:29 +0000
Subject: Re: any examples of using HTML_QuickForm to add users?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15431@lists.php.net to get a copy of this message
Easy way: Check when the form is posted and *before* you process it. Output the error yourself and then display the form as normal. "Right" way: Create a function to do this check for you and add it as a validation callback through QF. Check the addRule documentation. On Wed, 10 Nov 2004 16:33:03 -0800 (PST), Stowe Spivey <spiveyspivey@yahoo.com> wrote: > I am starting to use HTML_QuickForm and would like to use it for > adding users. I can process the user fine and use the form fine. > > What if in my processing I learn the user name is not unique, how do > I get that error message back to quickform and redisplay it again > with quickform? > > Many thanks for your ideas! > > __________________________________ > Do you Yahoo!? > Check out the new Yahoo! Front Page. > www.yahoo.com > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > !DSPAM:4192b4b834961875212667! > > -- Justin Patrin

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