diff --git a/form.php b/form.php index 06bfb9a..b07bd35 100644 --- a/form.php +++ b/form.php @@ -59,6 +59,8 @@ class form to check the defaults per example - [mandatory] : boolean to add a red star at end of label - [hidden] : hide the field (add a style='display:hidden' to the field) + - [prefix] : the prefix added to the name (in XXX/YYY/ZZZ form). + Will form an array to the result @param array $fields The fields to be displayed */ @@ -171,7 +173,6 @@ die ("FORM/VERIFY : UNUSED and dirty\n"); public function printHTML ($method = 'post', $values = NULL, $errors = array()) { - // TODO : textarea, file $this->method = strtolower ($method); $res = ""; $res = "
name][0]; $res .= "'>\n"; $res .= "