Re: Pear QuickForm date element causing problems

From: Date: Wed, 11 Aug 2004 21:26:51 +0000
Subject: Re: Pear QuickForm date element causing problems
References: 1 2 3 4 5 6 7  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14070@lists.php.net to get a copy of this message
On Wed, 11 Aug 2004 23:03:41 +0200, Sam Miller <collect@gmx.ch> wrote: > Justin Patrin wrote: > > On Tue, 10 Aug 2004 21:52:03 +0200, Sam Miller <collect@gmx.ch> wrote: > > > >>[snip] > >> > >>>Well, that code works for me and I assume Bertrand. It must be > >>>something on your end. Are you using the normal renderer? Have you > >>>modified QuickForm in any way? > >> > >>[snip] > >> > >>I'm using the default renderer. As far as I know I have not modified > >>QuickForm in any way. > >> > >>Since the code Bertrand posted did not work as it should, it must be > >>something wrong with the QuickForm installed on the server. (His code > >>was pretty basic and if _that_ doesn't work... well... everything else > >>won't work either) > >> > > > > > > It may also be HTML_Common. > > > > > >>So I guess I have to force my provider to install a newer version of > >>QuickForm. I hope that helps. > > > > > > If they refuse (or are slow) you can always have your own copy of PEAR > > packages. Just add a .htaccess file with: > > php_value include_path /home/user/path/to/pear > > > > > >>Thanks a lot for your input, I really apreciate it! > >> > >>Sam > >> > >>-- > >>PEAR General Mailing List (http://pear.php.net/) > >>To unsubscribe, visit: http://www.php.net/unsub.php > >> > > > > > > Okay, I had my provider reinstall QuickForm. The problem is still the > same, so for me there are two different explanations: > > 1) my provider didn't tell me the truth > 2) installed package does not work properly > > I'm tending to say it's 1)... > > So is there another possibility to set the default values of a date > field? Since I have the empty options in my list, the only thing I'd > need to do is set them as default. Is there a function that can do that > for me? > It could also be 3) a local copy of QuickForm is being used. Are you sure there's no HTML/QuickForm.php in your current dir or in your include_path? Have I asked this before? You can set the defaults with setDefaults() as I have said before. Did you have your provider update HTML_Common as well? It could also be the culprit possibly. What does the HTML source for one of the select boxes look like? Could you post it? -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin--

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