Re: QF Controller using an imgae submit button

From: Date: Mon, 22 Sep 2003 11:53:36 +0000
Subject: Re: QF Controller using an imgae submit button
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7954@lists.php.net to get a copy of this message
Hi! Mike Carter wrote:
One small problem - I use image buttons for next/previous/cancel. $actions[] = &HTML_QuickForm::createElement('image', 'action', 'buttons/next.jpg', array('alt' => $language['L_ButtonNext'])); Reading the manual page http://pear.php.net/manual/en/package.html.html-quickform-controller.int ro.php I see it mentions a line about $this->addElement('submit', $this->getButtonName('submit'), 'Send'); Is it possible to use the 'image' element type as a submit button in the QF controller?
Yes, it *should* be possible, just give the name to your image via the same Page's getButtonName() method.

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