[eluser]Skipper[/eluser]
[quote author="OverZealous" date="1277137027"]This is PHP, not Java ;-)[/quote]
Lol, true. Actually, I was musing over MySQL's enum as in
Code:
CREATE TABLE foobar ...
`unit` enum('box','pcs','kg','gr','ml','l','m','cm','mm','hrs','min') NOT NULL,
...
where I considered DMZ closer to validate. Your (deprecated) forms library knew about enums for drop-downs, IIRC, so I stupidly believed that DMZ would also. :red:
Anyway. Custom validation does this nicely as well, although not as DRY as I have hoped.