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 #204

<textarea>: "Dynamic tags require an ID value"?

Details

Submitted2003-11-06 12:37 UTC
Fromn dot dose at leo-media dot de
StatusNo Feedback
PackageHTML_Template_Flexy
PHP Version4.3.1
OSSUSE Linux 2.2.18
Roadmaps(Not assigned)

Comments

[2003-11-06 12:37 UTC] n dot dose at leo-media dot de

Description:
------------
I have a form where a customer chooses multilple parts. For each of these parts, there needs to be a <textarea>. That means each <textarea> needs a different name.

When trying to assign a name to each of these <textarea>s, I always get the error "<TEXTAREA>: Dynamic tags require an ID value".

I have tried all <textarea name="xx" id="yy"> combinations, where either xx or yy has a "dynamic" substring, but nothing works.

For the plain <input type="text"> element in the example template below, this error does not occur - you can freely assign it a dynamic name. The error occurs only w/ <select> and <textarea>.

Reproduce code:
---------------
template code:

{foreach:ordered,item}
...
<input type="text" name="dod_{item}" value="" size="18">
<textarea name="remarks_{item}" cols="20" rows="3"></textarea>
...
{end:}

Expected result:
----------------
resulting html (when item is "33"):

<input type="text" name="dod_33" value="" size="18">
<textarea name="remarks_33" cols="20" rows="3"></textarea>

Actual result:
--------------
compiling template .//enq.html
Error:.//enq.html on Line 307 <TEXTAREA>: Dynamic tags require an ID value

But if you delete the <textarea>, the <input> element gets output correctly.