Hello,
I have two questions about HTML_QuickForm
(1) How can I assign the action of a form ?
(2) How can assign different options and values of a "select" element ?
Two questions about HTML_QuickForm
Moderator: General Moderators
-
jamiel
- Forum Contributor
- Posts: 276
- Joined: Wed Feb 22, 2006 5:17 am
- Location: London, United Kingdom
You pass the action as a parameter to the constructor. It is the 3rd paramater.
You pass the select an array of values:
Code: Select all
$form = new HTML_QuickForm($formName, $method, $action);Code: Select all
$options = array('foo', 'bar');
$form->addElement('select', 'mySelect', 'Select: ', $options);