Re: Quickform: Group Radiobutton Client side rule

From: Date: Mon, 14 Mar 2005 21:37:41 +0000
Subject: Re: Quickform: Group Radiobutton Client side rule
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-18040@lists.php.net to get a copy of this message
On Mon, 14 Mar 2005 21:24:42 +0000, john.f.kline@att.net <john.f.kline@att.net> wrote: > I made the modification below for you... The createElement function returns an address in > memory to the element that it has created for you [...two copies would get created if they did not > do this way and it would be a waste of resources].... > > Thus, the functoin HTML_Quickform::createElement is designed to reutrn an address > (syntactically by '&')... the code below is changed for you... > > Here is a good article on the matter: > http://www.aditus.nu/jpgraph/phptip01.php Well, this is important for memory usage, but this isn't likely to help with the actual problem. The problem is that the group rule isn't working. > > -------------- Original message from Aaron Wormus <aaron@wormus.com>: -------------- > > > john.f.kline@att.net wrote: > > > > >Try casting to the "address of" : > > > > > >$agree[] = &HTML_QuickForm::createElement('radio', 'yes', > > >'I Agree', null, 1); > > >$agree[] = &HTML_QuickForm::createElement('radio', 'yes', > > >'I Disagree', null, > > 0); > > > > > > > > > > Sorry, that went right over my head, can you elaborate? Code? > > > > Aaron > > > > -- > > PEAR General Mailing List (http://pear.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- Justin Patrin

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