Re: QuickForm's date element / addEmptyOption
| From: | Mark Wiesemann | Date: | Mon, 01 Aug 2005 14:44:39 +0000 |
| Subject: | Re: QuickForm's date element / addEmptyOption | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20217@lists.php.net to get a copy of this message | ||
Justin Patrin wrote:
> ....+ should work fine.
I know that. But obviously it does not on two machines. I've just tried
on a fourth machine (LAMP, PHP 4.3.11) with success (right order). As
the production server will be another machine with a different setup, I
hope to get there also the right order. But I'm interested in solving
this problem anyway.
> Could you try making a simple test case (e.g. just 2 arrays being
> added with +) which displays this?
I tried but without success. All my examples worked as expected. The
only thing I can offer is a very minimal script showing the problem
(source code is displayed below the form):
http://www.markwiesemann.de/test/datetest.php
A quick-and-dirty solution would be to set the default values to '-' but
the wrong order would still remain. (Note: Using '' as emptyOptionValue
does not change the behaviour, that was something I thought could be
causing the wired + behavior.)
Mark