Re: Quickform: Group Radiobutton Client side rule
| From: | john dot f dot kline at att dot net | Date: | Mon, 14 Mar 2005 20:25:29 +0000 |
| Subject: | Re: Quickform: Group Radiobutton Client side rule | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-18030@lists.php.net to get a copy of this message | ||
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);
-------------- Original message from Aaron Wormus <aaron@wormus.com>: --------------
> It looks like it's quickform day today... so I'll throw this one into
> the pot to see if anyone can find a solution.
>
> I have a Terms of Use and I have a radio button group for "I Accept" and
> "I don't Accept", you can select one or the other. I want to be able to
> do this on the Client side.
>
> Here is what is not working, I don't know why. If anyone can show me the
> correct way to do something like this I would be greatful.
>
> $agree[] = HTML_QuickForm::createElement('radio', 'yes', 'I
> Agree',
> null, 1);
> $agree[] = HTML_QuickForm::createElement('radio', 'yes', 'I
> Disagree',
> null, 0);
>
> $this->addGroup($agree, 'agree', "", ' ');
>
> $this->addGroupRule("agree",
> 'You must agree to the Terms of Use',
> 'nonzero', null, null, 'client');
>
> Aaron
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>