diff --git a/form.php b/form.php index c2273e2..acafb0d 100644 --- a/form.php +++ b/form.php @@ -60,6 +60,7 @@ class form page - [mandatory] : boolean to add a red star at end of label - [hidden] : hide the field (add a style='display:hidden' to the field) + - [maxlength] : the maximum length of the content of the field in chars - [rows] : Number of rows - [cols] : Number of columns - [placeholder] : The text to be displayed in the placeholder @@ -355,7 +356,8 @@ class formfield /** Return the checkbox defined */ public function fieldcheckbox () { - // No $this->multiple, $this->rows $this->cols $this->placeholder + // No $this->multiple, $this->rows $this->cols $this->placeholder, + // $this->maxlength $res = ""; $res .= "