From c333b251d646f085f23baea3feff88d405ff3f9b Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Thu, 20 Nov 2014 19:56:01 +0000 Subject: [PATCH] form : add hidden support to fields git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1873 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- form.php | 40 ++++++++++++++++++++++++++++++++++------ 1 file changed, 34 insertions(+), 6 deletions(-) diff --git a/form.php b/form.php index e358e7d..41ccb7d 100644 --- a/form.php +++ b/form.php @@ -57,6 +57,7 @@ class form \$tmpfield can be used as a copy of the current field, 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) @param array $fields The fields to be displayed */ @@ -198,7 +199,10 @@ die ("FORM/VERIFY : UNUSED and dirty\n"); $res .= "'>\n"; $res .= "