Re: Radiogroup type?
| From: | Ian P. Christian | Date: | Thu, 21 Oct 2004 15:49:27 +0000 |
| Subject: | Re: Radiogroup type? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15020@lists.php.net to get a copy of this message | ||
On Thursday 21 October 2004 16:33, Ken Restivo wrote:
> I am considering rolling my own (it doesn't seem to be that difficult), but
> I do not want to reinvent the wheel, if this has already been done.
This could be done in HTML_Quickform
class myForm extends HTML_Quickform
{
function myForm()
{
$options = array(.... );
if (SiteAuth::getPreference('whatever') == 'select')
{
// add select stuff
}
else
{
// add optoins stuff.
}
}
}
Hope this helps.
--
Ian P. Christian
http://pookey.co.uk
Attachment: [application/pgp-signature]
Attachment: [application/pgp-signature]