Extending HTML_QuickForms
| From: | Colin Ross | Date: | Sun, 05 Dec 2004 02:02:10 +0000 |
| Subject: | Extending HTML_QuickForms | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-34805@lists.php.net to get a copy of this message | ||
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...
Colin Ross
Web Assistant
World Study Group
2226 Bush Street
San Francisco, CA 94115
www.worldstudygroup.com
cross@worldstudygroup.com