From: David <da...@df...> - 2004-05-12 19:06:02
|
Hello, I changed the field saving & reading a little bit to support field names that contain array keys better. The key methods are Formsess::_parse_field_name and Formsess::_dig_into_array. (I added the latter) Just in case you want to have a closer look. You can now have a textfield named "myfield[testindex]" and either do $fs->getValue('myfield') which returns array(testindex => enteredValue) or $fs->getValue('myfield[testindex]') which returns the entered value directly. Getting the values of an array of checkboxes (all named "box[]") without the brackets works as well ($fs->getValue('box')) and returns an array of all checked boxes. Everything seems to work for me, but this really needs some testing! (@Katana: and a review ;) ) - david ps: i made that changes to the trunk, they have nothing to do with the tag-parsing issue. |