Home » HTML » HTML_Template_Flexy » Bug #204
<textarea>: "Dynamic tags require an ID value"?
Details
| Submitted | 2003-11-06 12:37 UTC |
|---|---|
| From | n dot dose at leo-media dot de |
| Status | No Feedback |
| Package | HTML_Template_Flexy |
| PHP Version | 4.3.1 |
| OS | SUSE 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.