Re: formbuilder - how do you add an html element?
| From: | Justin Patrin | Date: | Wed, 05 Jan 2005 19:11:21 +0000 |
| Subject: | Re: formbuilder - how do you add an html element? | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-16680@lists.php.net to get a copy of this message | ||
On Wed, 5 Jan 2005 11:09:48 -0800 (PST), l Burnerheimerton
<lburnerheimerton@yahoo.com> wrote:
> This was what I did in QuickForm and want to replicate in FormBuilder:
>
> $form->addElement('html', "<html><link
> href=\"../utilities/stylesheet.css\"
> rel=\"stylesheet\" type=\"text/css\"><body>");
This is absolutely not the right place to put this. Output this
*before* your form manually with an echo. In addition, <link> elements
should be inside the <head>.
>
>
>
> Justin Patrin <papercrane@gmail.com> wrote:
> On Wed, 5 Jan 2005 10:37:42 -0800 (PST), l Burnerheimerton
> wrote:
> > All the elements I have added so far are field elements so adding:
> >
> > $this->fb_preDefElements['htmlTAG'] =
> HTML_QuickForm::createElement('html', '');
> >
> > doesn't make sense.
> >
> > Thanks for any help on this.
> >
>
> You're going to have to give us more explanation. What are you trying to do?
>
> --
> Justin Patrin
>
>
--
Justin Patrin