Re: Quickform: Group Radiobutton Client side rule
| From: | john dot f dot kline at att dot net | Date: | Mon, 14 Mar 2005 21:24:42 +0000 |
| Subject: | Re: Quickform: Group Radiobutton Client side rule | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-18035@lists.php.net to get a copy of this message | ||
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
-------------- 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
>