Thanks Mirko. You are correct. We do not yet have this capability in
the core, but it is a good idea. I'll try to put it into the next
release.

Here's the code I actually used, which can also get checked=true to
work. Let me know if anyone spots any bugs with this:

        if ($type == 'radio' || $type == 'checkbox') {
                if (substr($args['name'], -2) == "[]") {
                        if (strpos(',' . $args['checked'] . ',', 
$args['value']) !== false
|| $args['checked'] == 'true') $args['checked'] = 'true';
                        else unset($args['checked']);
                        }
                elseif ($args['checked'] == $args['value'] || $args['checked'] 
==
'true') $args['checked'] = 'true';
                else unset($args['checked']);
                }

Cheers,
Dan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to