diff --git a/form.php b/form.php index 6b11f81..06bfb9a 100644 --- a/form.php +++ b/form.php @@ -42,7 +42,8 @@ class form - [titles] : text written in radio/checkboxes - [defaults] : default values. Must be array for checkbox/select, and string for others - - [type] : text, password, hidden, checkbox, select, radio, submit + - [type] : text, password, hidden, checkbox, select, radio, submit, + textarea text by default - [multiple] : Multiple selection are possible (if the type supports it) - [group] : define a fieldset and define the title with groupe name @@ -477,6 +478,48 @@ die ("FORM/VERIFY : UNUSED and dirty\n"); $res .= " \n"; break; + case "textarea": + // No $field->multiple, $field->titles + $res .= "