Re: QuickForm, select with null value. Bug?

From: Date: Wed, 18 Jun 2003 20:07:06 +0000
Subject: Re: QuickForm, select with null value. Bug?
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6108@lists.php.net to get a copy of this message
Alexey Borzov wrote:
Hi! Wolfram Kriesing wrote:
Try the current CVS of select.php, please. I made a bunch of changes to getFrozenHtml() But I suspect that you'll get some other undesired behaviour, as null == 0.
well now there comes no notice. but as you supposed, since the null-value is before the 0-value in the options, it shows me the option-label for the null-value instead of the label for the 0 :-(
Well, my advice would be "don't use values that PHP considers equal in the sense of ==". It is *possible* to change that == to ===, but this will open a bigger can of worms, as f.e. you may add options with int values which will become strings after form submit and thus !==
i thought that this would be the answer :-( well ... i have to find a workaround ... -- Wolfram ... opensource @ vision:produktion ... http://opensource.visionp.de ... authentication system .... http://sf.net/projects/auth

« previous php.pear.general (#6108) next »