Home » HTML » HTML_Template_Flexy » Bug #4005
PHP5.0.2 + HTML_Template_Flexy 1.2.1, form checkbox element not working
Details
| Submitted | 2005-03-30 15:25 UTC |
|---|---|
| From | cj at sitemajic dot com |
| Status | No Feedback |
| Package | HTML_Template_Flexy |
| PHP Version | 5.0.2 |
| OS | Gentoo Linux 2004.3 |
| Roadmaps | (Not assigned) |
Comments
[2005-03-30 15:25 UTC] cj at sitemajic dot com
Description:
------------
Using:
PHP5.0.2
HTML_Template_Flexy 1.2.1
Any $elements['myelement']->setValue(); for checkboxes is not working in 1.2.1, had to downgrade to 1.1.2 to get it to work again.
Reproduce code:
---------------
just create a checkbox element and attempt to set it's value to checked
Expected result:
----------------
have a checkbox selected
Actual result:
--------------
no change in checkbox status, remains unchecked
[2005-05-06 16:40 UTC] brett at mrphp dot com dot au
The same issue is present in PHP 4.3.
[2005-05-06 16:50 UTC] brett at mrphp dot com dot au
Here is a work around:
--[ REPLACE ]--
$elements['my_checkbox']->setValue(1);
--[ WITH ]--
$elements['my_checkbox']->attributes['value'] = 1;