Re: QuickForm_image
| From: | Alexander Petri | Date: | Mon, 18 Oct 2004 08:09:17 +0000 |
| Subject: | Re: QuickForm_image | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-14940@lists.php.net to get a copy of this message | ||
an image element is mostly a special "submit" element
i.e.:
HTML_QuickForm::createElement('image','cb_submit',"../img/button-aktivieren.
gif", array( "onFocus" => "if(this.blur)this.blur()",
"style" => "cursor:pointer",
"class" => "sendendunkelgrau"));
if you will show a picture with a link so you have to use the Element 'link'
"Mos" <mos_fr@yahoo.fr> schrieb im Newsbeitrag
news:20041013073438.84420.qmail@pb1.pair.com...
> Hi there !
>
> 1/ Does anybody know the syntax for HTML_QuickForm_image class ?
> I mean how to use it in a form ?
>
> $form->addElement('image', // type of element
> "answer2[$key]", // name of the
> element
> './images/answer.png', //image source of
> the element
> '',
> '');
>
> Which are the others parameters available (I set 2 others in the example,
> but I don't know if it is right or not)
> 2/ Is there a parmeter to pass a link with this element (in a array as
> attribute ?)
>
> Thanks
> Mos