Hi
I have a form with a few form elements. However some of these elements I want on the same line rather than on separate lines.
The example below highlights my problem:
$form = new HTML_QuickForm();
$form->addElement('header', 'MyHeader', 'Testing QuickForm');
$form->addElement('text', 'MyTextBox', 'What is your name?');
$form->addElement('text', 'MyTextBox2', 'What is your dogs name?');
$form->addElement('text', 'MyTextBox3', 'What is your cats name?');
$form->addElement('reset', 'btnClear', 'Clear');
$form->addElement('submit', 'btnSubmit', 'Submit');
if ($form->validate()) {
# If the form validates then freeze the data
$form->freeze();
}
$form->display();
I want the last two elements ('MyTextBox2', 'MyTextBox3') to appear on the same line. Is this possible with HTML QuickForm?
Jon