Important change in QuickForm select element

From: Date: Tue, 18 Jun 2002 11:38:35 +0000
Subject: Important change in QuickForm select element
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-7178@lists.php.net to get a copy of this message
Hi, I have changed the way values are loaded in the select elements in QuickForm. It used to be $array = array('Linux' => 1, 'Windows' => 2); Now it is $array = array(1 => 'Linux', 2 => 'Windows'); I know this is an important change and it will probably mess some users code. But I believe it is really more logical this way, especially if you have french, spanish, german... language values because they can be accentuated and it is easier this way to filter them with htmlentities or other transformation functions. This is also more logical IMO. If some users are worried about these modifications, I can test against a constant to set the values back to the previous order but in the long run, this way will probably be the most efficient. If nobody complains, I will make a new release with these modifications. Bertrand Mansion Mamasam

« previous php.pear.dev (#7178) next »