Fixed hidden fields output (backported; fixes problem with security role editiom).
[fa-stable.git] / includes / ui / ui_input.inc
index 4f02f9b26b8e4aa89504dc5f7c0dd58cf5306e5e..0e58b36bc874d1411f8af7c42510fa7a3d45b69e 100644 (file)
@@ -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)
 {