Re: HTML_Quickform and setDefaults for radio group

From: Date: Mon, 21 Jun 2004 14:57:39 +0000
Subject: Re: HTML_Quickform and setDefaults for radio group
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13230@lists.php.net to get a copy of this message
On Mon, 21 Jun 2004 18:42:58 +0400, Alexey Borzov <borz_off@cs.msu.su> wrote: > > Hi, > > Tizzle wrote: > > > I am trying to set the default value for a group of radio buttons as > > follows, with no luck: > > > $uploadForm->setDefaults(array('sex','m')); > > Do we have a "most stupid mistake" contest? > ok, that sounds bad :) it's the end of the day on my side of the ocean so i guess i'm not seeing straight anymore. This is what i read in the 'somewhat bigger quickform tutorial': ----- Code listing 7.21: Selecting default radio button setDefaults(array(element-name, value)); ----- the following would make more sense to me but that does not work either... $uploadForm->setDefaults(array('sex'=>'m'));

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