![Picture of Form Class Picture of Form Class](/graphics/unknown.gif)
Form Class - 2007-04-10 20:06:36
Hi All,
I prefix ' ' to some inputs' LABELs for fine alignment with the labels of other inputs. I have a SELECT-type input and these space chars are getting prefixed to the display values of the OPTIONS (the text between <option></option> tags) although I'm not even prefixing the space char to this input's LABEL because none of the inputs on this page needs one. This is happening only with one input whose name is 'sort' while other similar inputs appearing after this input are rendering just fine. This is the first input on the page with a couple of BUTTON-type inputs above/before it and similar inputs after/below it:
[NAME] => sort
[ID] => sort
[TYPE] => select
[VALUE] => Modified
[OPTIONS] => Array
(
[Name] => Name
[Modified] => Modified
)
[STYLE] => width: 150px
[LABEL] => Sort
[ACCESSKEY] => O
[ValidateOptionalValue] =>
I'm using forms class released on 2007-4-2. My code does not manipulate the OPTIONS array in any way. If I comment the part that prefixes space char to the label, the input is rendered fine. What could be causing these space chars to make into (prefixed to) the display values of the OPTIONS?
TIA