PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_Template_Flexy » Bug #5267

checkbox (array) id attribute error

Details

Submitted2005-09-01 14:54 UTC
Frompedro at enova dot com dot br
Assignedalan_k
StatusClosed
PackageHTML_Template_Flexy
PHP Version4.3.10
OSWinXPSP2 & 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>