X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_input.inc;h=0e58b36bc874d1411f8af7c42510fa7a3d45b69e;hb=4052beb0e908e206956eee5b479de283173d1801;hp=4f02f9b26b8e4aa89504dc5f7c0dd58cf5306e5e;hpb=bbdff993d6f7a82e8de8b827c008691e037b37eb;p=fa-stable.git diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc index 4f02f9b2..0e58b36b 100644 --- a/includes/ui/ui_input.inc +++ b/includes/ui/ui_input.inc @@ -85,7 +85,12 @@ function input_num($postname=null, $dflt=0) } //--------------------------------------------------------------------------------- -$hidden_fields = array(); // store for hiddn fields attached just before form end (for proper html validation) +// +// Thanks to hidden fields buffering hidden() helper can be used in arbitrary places and +// proper html structure is still preserved. Buffered hidden fields are output on the nearest +// table or form closing tag (see output_hidden()). +// +$hidden_fields = array(); function hidden($name, $value=null, $echo=true) {