Home » HTML » HTML_QuickForm » Bug #3214
Fields of type "hidden" produce errors
Details
| Submitted | 2005-01-15 23:54 UTC |
|---|---|
| From | contact at nelsonford dot net |
| Status | Bogus |
| Package | HTML_QuickForm |
| PHP Version | 5.0.3 |
| OS | Mac OS X 10.3.5 |
| Roadmaps | (Not assigned) |
Comments
[2005-01-15 23:54 UTC] contact at nelsonford dot net
Description:
------------
My hidden fields won't display. I am using smarty for my
templates and have had no trouble with other field
types. I get error Undefined index
Reproduce code:
---------------
$form->addElement("hidden", "type", "profile_content");
$form->addElement("text", "name", "Name:");
//code to pass values to smarty and display templates
{$form_data.name.html}
{$form_data.type.html}
Expected result:
----------------
A name field and a hidden field
Actual result:
--------------
A name field and:
Notice: undefined index: type in /path/to/webroot/
template.tpl on line 22