RE: [PEAR] QFC Form attributes
| From: | Mike Carter | Date: | Tue, 30 Sep 2003 22:33:09 +0000 |
| Subject: | RE: [PEAR] QFC Form attributes | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-8159@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Alexey Borzov [mailto:borz_off@cs.msu.su]
>
> Hi!
>
> Mike Carter wrote:
> > Using QF Controller how do I add on additional attributes
> to the main
> > Form definition used by all the pages?
> >
> > I've like to add: autocomplete="off" to appear in the <form> tag.
>
>
http://pear.php.net/manual/en/package.html.html-quickform-controller.htm
l-quickform-page.html-quickform-page.php
Thanks - it was more how to actually fit it all together. Knowing about
the constructor wasn't the hard bit. In the end (for anybody else who
is new to it) the answer was to do the following in each of my defined
Page classes:-
class Page_Account_Membership extends HTML_QuickForm_Page
{
function Page_Account_Membership($formName) {
$this->HTML_QuickForm_Page($formName, 'post', '_self',
array('autocomplete' => 'off'));
}
..etc...
Regards,
Mike C
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________