Fixed hidden fields output. Fields are displayed after following table end (if any).
[fa-stable.git] / includes / ui / ui_input.inc
index 9ca13632a5fd7a149e7be85cae1183c981927bba..0d4d0bfebfdebca788e2111a6086e6b7e7eed94a 100644 (file)
@@ -93,7 +93,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)
 {