Re: Extending HTML_QuickForms

From: Date: Sun, 05 Dec 2004 04:17:24 +0000
Subject: Re: Extending HTML_QuickForms
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-34808@lists.php.net to get a copy of this message
On Sat, 4 Dec 2004 18:02:10 -0800, Colin Ross <cross@worldstudygroup.com> wrote: > I am in the process of trying to extend the processing part of HTML_QuickForm to send an email > of the submited values after validation. > This is very common on websites, a form that send the result via email. > > The only problem is that the process() method only has a values array of $name=>$value. > > Is there a way to specify what you want process to pass off? > If i could i would like the whole [_elements] array, if not the whole object (or reference to > it) so even the configuration of the mail can co-exist with the QuickForms' > > From what I can tell, the process() method calls a function (user-define or not) as passes the > $value array mentioned earlier, but nothing else (other than an optional argument for combining > files), therefore, within any fuction here, the form object is out of scope. > > Any ideas? I don't want to hack the code unless absolutely neccesary... > Don't extend HTML_QuickForm maybe? Create your own code which gets the values from the form and passes that and the form object into your mailer function. -- Justin Patrin

« previous php.pear.dev (#34808) next »