Home » HTML » HTML_Template_Flexy » Bug #5267
checkbox (array) id attribute error
Details
| Submitted | 2005-09-01 14:54 UTC |
|---|---|
| From | pedro at enova dot com dot br |
| Assigned | alan_k |
| Status | Closed |
| Package | HTML_Template_Flexy |
| PHP Version | 4.3.10 |
| OS | WinXPSP2 & Ubuntu 5.04 |
| Roadmaps | (Not assigned) |
Comments
[2005-09-01 14:54 UTC] pedro at enova dot com dot br
Description:
------------
Using HTML_Template_Flexy, when I set a 'id' in checkboxes with the same 'name' attribute an error occurs. Despite this, with radio input tags this works fine.
Test script:
---------------
Template:
<input id="opt_1" type="checkbox" name="opt[]" value="1" />
<label for="opt_1">option 1</label>
<input id="opt_2" type="checkbox" name="opt[]" value="2" />
<label for="opt_3">option 2</label>
<input id="opt_3" type="checkbox" name="opt[]" value="3" />
<label for="opt_3">option 3</label>
Expected result:
----------------
<input id="opt_1" type="checkbox" name="opt[]" value="1" />
<label for="opt_1">option 1</label>
<input id="opt_2" type="checkbox" name="opt[]" value="2" />
<label for="opt_3">option 2</label>
<input id="opt_3" type="checkbox" name="opt[]" value="3" />
<label for="opt_3">option 3</label>
Actual result:
--------------
Error:/var/www/assets/tpl/edit_profile.tpl on Line 36 in Tag <INPUT>:
The Dynamic tag Name 'opt[]' has already been used previously by tag <input>