NEWT_FORM_ADD_COMPONENT(3) 1 NEWT_FORM_ADD_COMPONENT(3)
newt_form_add_component - Adds a single component to the form
SYNOPSIS
void newt_form_add_component (resource $form, resource $component)
DESCRIPTION
Adds a single component to the $form.
PARAMETERS
o $form
- Form to which component will be added
o $component
- Component to add to the form
RETURN VALUES
No value is returned.
EXAMPLES
Example #1
A newt_form_add_component(3) example
<?php
$form = newt_form();
$options = array("Authentication configuration", "Firewall configuration",
"Mouse configuration", "Network configuration", "Printer configuration",
"System services");
$list = newt_listbox(3, 2, 10);
foreach ($options as $l_item) {
newt_listbox_add_entry($list, $l_item, $l_item);
}
newt_form_add_component($form, $list);
?>
SEE ALSO
newt_form_add_components(3).
PHP Documentation Group NEWT_FORM_ADD_COMPONENT(3)