Re: QuickForm Won't display
| From: | Bertrand Mansion | Date: | Fri, 14 Jun 2002 16:10:31 +0000 |
| Subject: | Re: QuickForm Won't display | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-1663@lists.php.net to get a copy of this message | ||
<david@ddahl.com> wrote :
> the HTML_QuickForm example script works fine on my machine, however,
> this does not:
>
> require_once ("HTML/QuickForm.php");
> $userForm = new HTML_QuickForm('users0', 'GET');
> $userForm->addHeader('Current Association Users');
> $userForm->addElement('hidden', 'a', 'users');
> $userForm->addElement('hidden', 'sub', 'edit_user');
> $userForm->addElement('select', 'user_id', 'User',
> array('A'=>'A',
>
> 'B'=>'B','C'=>'C','D'=>'D'));
> $buttons[] = &HTML_QuickForm::createElement('submit', null, 'Submit');
> $buttons[] = &HTML_QuickForm::createElement('reset', null, 'Reset');
> $userForm->addElementGroup($buttons);
> $userForm->display();
>
> I do not understand it.
Me neither, it works on mine. What does it do ?
Do you throw <html><body> on top of your page ?
Anyway, your code is fine, the problem comes from somewhere else.
> Also, will $userForm->toHTML(); create a variable or output text that i
> can use in the HTML_Table addRow() method?
Sure.
Bertrand Mansion
Mamasam