Re: Pear QuickForm date element causing problems

From: Date: Thu, 12 Aug 2004 08:01:24 +0000
Subject: Re: Pear QuickForm date element causing problems
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14077@lists.php.net to get a copy of this message
Sam Miller wrote: >[snip] >> >> >> 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? >> >My provider probably didn't update HTML_Common but I'll look into that. Yes, you should. Also make sure the PHP version you are using is not too old. >Let me ask a stupid question: How do I use setDefaults() for a date >element (since it consists of multiple select boxes). That would >probably the easiest way to fix the whole thing. Just set the defaults >manually, using setDefaults(). If your element is d-m-Y, you can do: $form->setDefaults(array('dateElement' => array('d' => '', 'm' => '', 'Y' => ''))); Bertrand Mansion Mamasam

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